We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I think the req.headers object is slightly different in the Node 8 http2 module.
if (req.headers.hasOwnProperty('x-forwarded-for')) { ^ TypeError: req.headers.hasOwnProperty is not a function
Could this be if(req.headers['x-forwarded-for']) instead?
if(req.headers['x-forwarded-for'])
The text was updated successfully, but these errors were encountered:
Possibly related: nodejs/node#6055
Sorry, something went wrong.
jimlambie
No branches or pull requests
I think the req.headers object is slightly different in the Node 8 http2 module.
Could this be
if(req.headers['x-forwarded-for'])
instead?The text was updated successfully, but these errors were encountered: