Skip to content

handle hop-to-hop headers according to http/1.1 / RFC 2616 #28

@minrk

Description

@minrk

Copying http-party/node-http-proxy#1488 : hop-to-hop headers shouldn't be included in proxied requests/responses:

  • Connection
  • Keep-Alive
  • Proxy-Authenticate
  • Proxy-Authorization
  • TE
  • Trailers
  • Transfer-Encoding
  • Upgrade

Of these, I think only Upgrade is handled correctly, and Connection is okay, though maybe not all the way right. transfer-encoding is not right and I think the rest are ignored and passed-through. Other than Connection, these are all pretty rare, so it doesn't come up, but probably worth addressing.

relevant RFC section

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions