Parse folded HTTP field values according to RFC 7230 #53227
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
breaking-change-request
This tracks requests for feedback on breaking changes
cherry-pick-approved
Label for approved cherrypick request
library-io
Change Intent
The intent of this change is to correctly parse folded header field values contained (through
HttpHeaders
) inHttpRequest
andHttpClientResponse
.For example, an HTTP request like:
Would be parsed like:
Justification
RFC 7230 Section 3.2.4 says:
The amount of interior whitespace in an HTTP header value is not significant according to RFC 2616 2.2:
Impact
Header folding was deprecated in RFC 7230 (published in 2014) so this is change is unlikely to have a significant impact.
Code that (against the standard) relies on particular whitespace in folded header values will be broken.
Mitigation
I think that this is unlikely to have significant impact.
The text was updated successfully, but these errors were encountered: