(req, res, next)
| 31 | } |
| 32 | |
| 33 | export function setLanguageFastlySurrogateKey(req, res, next) { |
| 34 | res.set(KEY, `${SURROGATE_ENUMS.DEFAULT} ${makeLanguageSurrogateKey(req.language)}`) |
| 35 | return next() |
| 36 | } |
| 37 | |
| 38 | export function makeLanguageSurrogateKey(langCode = null) { |
| 39 | if (!langCode) { |
nothing calls this directly
no test coverage detected