Skip to content

HTTP2 error on req.headers #56

@abovedave

Description

@abovedave

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?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions