0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/core/server/web
Hannah Wolfe ce6745b6a1 Improved x-request-id handling
- Currently, we create a request ID for internal use if one isn't set & this is used in logs
- If a custom request ID is set via X-Request-ID header, this gets logged, however, we don't return this with the response
- Means that a custom ID gets lost on the way back out, and makes tracing requests through a system trickier
- This change ensures that if X-Request-ID is set on the request, it is also set on the response so that requests can be properly traced
- It's easy to set this in e.g. nginx so that the feature becomes available - Ghost doens't need to do this
- Note: also split request id handling out into new middleware
2019-12-04 16:13:35 +00:00
..
admin ES6 migration: server/web (#9729) 2018-07-12 15:35:35 +02:00
api ES6 migration: server/web (#9729) 2018-07-12 15:35:35 +02:00
middleware Improved x-request-id handling 2019-12-04 16:13:35 +00:00
site Dynamic Routing Beta (#9596) 2018-06-05 19:02:20 +02:00
parent-app.js Improved x-request-id handling 2019-12-04 16:13:35 +00:00
utils.js