Skip to content

SocketsHttpHandler is inconsistent with header value trimming on HTTP/1.1 #77001

Description

@MihaZupan

From #74393 (comment)

The spec defines field lines as

  field-line   = field-name ":" OWS field-value OWS
  OWS          = *( SP / HTAB )

We currently trim leading SP and HTAB, but only trailing SP.
It should be much more common to encounter an HTAB before the value (following the name:), as there usually isn't any whitespace after the value.

Do we care about this inconsistency?
Filing this so we can make a conscious decision we can point to in the future.

Activity

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

    area-System.Net.Httpgood first issueIssue should be easy to implement, good for first-time contributorshelp wanted[up-for-grabs] Good issue for external contributors

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions