Skip to content

Commit

Permalink
Merge pull request #180 from Dominic-Preap/master
Browse files Browse the repository at this point in the history
Add optional "lookupHeader" to replace default header
  • Loading branch information
jamuhl authored Apr 18, 2019
2 parents ebc9dc4 + e866750 commit 3d9a29a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/languageLookups/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
if (!headers) return found;

let locales = [];
let acceptLanguage = headers['accept-language'];
let acceptLanguage = options.lookupHeader ? headers[options.lookupHeader] : headers['accept-language'];

if (acceptLanguage) {
let lngs = [], i, m;
Expand Down

0 comments on commit 3d9a29a

Please sign in to comment.