0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/core/server/web/shared/middlewares
Hannah Wolfe 0107ac848a 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-09-22 18:23:45 +01:00
..
api Switched private login brute errors to correct error status code 2019-09-09 16:02:21 +01:00
image Extracted frontend folder (#10780) 2019-06-19 11:30:28 +02:00
validation
admin-redirects.js
brute.js
cache-control.js Update Test & linting packages (major) (#10858) 2019-07-05 13:40:43 +02:00
custom-redirects.js Updated docs api links to be version-less 2019-07-25 15:17:23 +08:00
emit-events.js
error-handler.js Added error handling for weird handlebars syntax 2019-09-09 13:03:04 +01:00
frontend-client.js
ghost-locals.js Extracted frontend folder (#10780) 2019-06-19 11:30:28 +02:00
index.js Improved x-request-id handling 2019-09-22 18:23:45 +01:00
labs.js
log-request.js Improved x-request-id handling 2019-09-22 18:23:45 +01:00
maintenance.js Extracted frontend folder (#10780) 2019-06-19 11:30:28 +02:00
pretty-urls.js
request-id.js Improved x-request-id handling 2019-09-22 18:23:45 +01:00
serve-favicon.js
serve-public-file.js Moved members static mount point to /ghost/members 2019-06-25 15:13:52 +07:00
static-theme.js Extracted frontend folder (#10780) 2019-06-19 11:30:28 +02:00
uncapitalise.js Updated uncapitalise check to work with canary 2019-08-09 20:46:49 +05:30
update-user-last-seen.js
upload.js
url-redirects.js