Skip to content

According to RFC7230:3.2.4,whitespace in repsonse header fieldname should be removed,not just return parse error #6793

Closed

Description

@garfieldonly

In the commit below
08512de

we treat it as parse error while we found white space between field name and colon.
It's right when we found ws in request.
However,we should remove white space when we found it in response.

No whitespace is allowed between the header field-name and colon. In the past, differences in the handling of such whitespace have led to security vulnerabilities in request routing and response handling. A server MUST reject any received request message that contains whitespace between a header field-name and colon with a response code of 400 (Bad Request). A proxy MUST remove any such whitespace from a response message before forwarding the message downstream.

@oknet @bryancall

Activity

  1. added 2 commits that reference this issue on May 15, 2020
  2. oknet commented on May 15, 2020

    @oknet
    Member

    Link to #3192

  3. added this to the 10.0.0 milestone on May 15, 2020
  4. added a commit that references this issue on Jun 9, 2020
  5. added a commit that references this issue on Jul 14, 2020
  6. removed their assignment
    on Jul 22, 2020
  7. modified the milestones: 10.0.0, 9.1.0 on Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions