Skip to content

Test header encoding end-to-end #154

Closed

Description

The HTTP spec has never been clear about proper header encoding and some clients send UTF-8 or Latin1 data. The proxy needs to be as transparent as possible to such issues, or at least give the developer adequate control over the behavior.

Test scenarios:

  • Request - Main issue, the developer rarely controls the client behavior
    • UTF-8 for known headers (Host, Referrer) and custom headers
    • Latin1 for known headers (Host, Referrer) and custom headers
  • Response - Less of a problem since the developer has more control over these
    • UTF-8 for known headers (Location) and custom headers
    • Latin1 for known headers (Location) and custom headers
  • Servers
  • HttpClient
    • Request: Known to disallow sending non-ascii request headers
    • Response:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions