Skip to content

Commit

Permalink
Fixed home page test breakage
Browse files Browse the repository at this point in the history
  • Loading branch information
maxxcrawford committed Apr 1, 2020
1 parent dacc370 commit 5a4e3d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async function home(req, res) {

function getExperimentBranch(req, sorterNum) {

if (!req.headers["accept-language"].includes("en") ){
if (req.headers && !req.headers["accept-language"].includes("en") ){
return false;
}

Expand Down

0 comments on commit 5a4e3d8

Please sign in to comment.