Skip to content

[http_client_conformance_tests] Add flag to skip tests for folded headers #1219

@Anikate-De

Description

@Anikate-De

According to the current internet standard (RFC 9110: HTTP Semantics), "\r\n" is invalid

Field values containing CR, LF, or NUL characters are invalid and dangerous, due to the varying ways that implementations might parse and interpret those characters; a recipient of CR, LF, or NUL within a field value MUST either reject the message or replace each of those characters with SP before further processing or forwarding of that message.

OkHttp (please see this) and many modern web frameworks (like Flask) reject Header values which contain such illegal characters.

However, the server headers folded headers test group adds rigidity by forcing clients to replace invalid characters with space.

I (thanks to @brianquinlan) suggest adding a boolean flag supportsFoldedHeaders to testResponseHeaders() which ultimately lets us skip the test: folded headers

Clients rejecting headers with illegal values can also be considered to be conformant to the HTTP Standard.

Metadata

Metadata

Assignees

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