0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server/web/middleware
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
..
api Extended ghost version utility (#9278) 2018-01-03 20:20:18 +01:00
validation 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
admin-redirects.js
brute.js
cache-control.js
custom-redirects.js Updated docs links 2018-07-20 23:49:16 +02:00
error-handler.js Added error handling for weird handlebars syntax 2019-12-04 14:05:14 +00:00
frontend-client.js Moved labs, auth, permissions, settings, mail, themes to services (#9339) 2017-12-14 03:01:23 +01:00
ghost-locals.js Moved ghost-version to lib 2017-12-14 22:14:55 +01:00
index.js Dynamic Routing Beta (#9596) 2018-06-05 19:02:20 +02:00
labs.js Moved labs, auth, permissions, settings, mail, themes to services (#9339) 2017-12-14 03:01:23 +01:00
log-request.js Improved x-request-id handling 2019-12-04 16:13:35 +00:00
maintenance.js Dynamic Routing Beta (#9596) 2018-06-05 19:02:20 +02:00
pretty-urls.js
request-id.js Improved x-request-id handling 2019-12-04 16:13:35 +00:00
serve-favicon.js Moved image utils to lib/image 2017-12-14 20:46:53 +01:00
serve-public-file.js Always require fs-extra - consistency change 2017-12-13 20:57:11 +01:00
static-theme.js Moved utils constants to lib/constants 2017-12-14 14:13:40 +01:00
uncapitalise.js Moved removeOpenRedirectFromUrl to local web utils 2017-12-13 22:06:31 +01:00
url-redirects.js 🐛 Fixed infinite redirect when subdirectory equals top level domain (#9621) 2018-05-28 12:18:34 +02:00