mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
Uppercased Content-Version header use
refs https://github.com/TryGhost/Toolbox/issues/227 - The convention across the codebase is to define headers with capitalized first letters. This change does not affect the output though as all headers are served lowercased anyway. - Might be a good idea to make all headers lowercased one day to match the casing with the outputs
This commit is contained in:
parent
bfbece948e
commit
fa82722b03
@ -83,7 +83,7 @@ const http = (apiImpl) => {
|
||||
|
||||
// CASE: generate headers based on the api ctrl configuration
|
||||
if (req && req.headers && req.headers['accept-version'] && res.locals) {
|
||||
headers['content-version'] = `v${res.locals.safeVersion}`;
|
||||
headers['Content-Version'] = `v${res.locals.safeVersion}`;
|
||||
}
|
||||
res.set(headers);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user