Added requestURL handling in version mismatch middleware

refs https://github.com/TryGhost/Toolbox/issues/292

- We need to pass this data so that emails include this bit of information
This commit is contained in:
Naz 2022-05-05 17:56:18 +08:00
parent 521ddc001c
commit fc7e1c383e

View File

@ -5,6 +5,7 @@ const versionMismatchHandler = (APIVersionCompatibilityService) => {
await APIVersionCompatibilityService.handleMismatch({
acceptVersion: req.headers['accept-version'],
contentVersion: `v${res.locals.safeVersion}`,
requestURL: req.originalURL,
userAgent: req.headers['user-agent']
});
}