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:
parent
521ddc001c
commit
fc7e1c383e
@ -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']
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user