Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug 528268 - TypeError: Cannot set property 'accept-language' of null
  • Loading branch information
mrennie committed Dec 7, 2017
1 parent 76cad56 commit 04e4b91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/orionode/lib/cf/target.js
Expand Up @@ -274,8 +274,8 @@ function cfRequest (method, userId, url, query, body, headers, requestHeader, ta
});
});
}
function fullTarget(req,target){
if(req.headers['accept-language']){
function fullTarget(req, target){
if(req.headers['accept-language'] && target) {
target['accept-language'] = req.headers['accept-language'];
}
return target;
Expand Down

0 comments on commit 04e4b91

Please sign in to comment.