Skip to content

Commit

Permalink
Don't default to vary and content-language from storage for variants
Browse files Browse the repository at this point in the history
Change-Id: I709112e7accf813c51e2415e7b9c78fd5487f20a
  • Loading branch information
Pchelolo authored and d00rman committed Jun 20, 2018
1 parent 1b7fac1 commit 479f95f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/language_variants_filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,8 @@ module.exports = (hyper, req, next, options, specInfo) => {
// and important headers from the transformation.
const resHeaders = res.headers;
res.headers = htmlRes.headers;
res.headers.vary = resHeaders.vary || htmlRes.headers.vary;
res.headers['content-language'] = resHeaders['content-language']
|| htmlRes.headers['content-language'];
res.headers.vary = resHeaders.vary;
res.headers['content-language'] = resHeaders['content-language'];
// TODO: T197702
res.headers.vary = 'accept-language';
return res;
Expand Down

0 comments on commit 479f95f

Please sign in to comment.