-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Parse folded HTTP field values according to RFC 7230 #53227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@itsjustkevin I think that this is ready for sign off. |
SGTM, but didn't we just make a change to remove trailing whitespace? Should we also fold inner whitespace since it's not semantically meaningful? Anyway, either way is fine by me. |
SGTM. |
My intuition, unsupported by any data, is that folding internal whitespace is likely to break things because developers aren't aware that folding is allowed. |
lgtm |
Bug: #53227 Bug: #53185 Change-Id: Ibbdbdf9c8f2875e8f687244982810fffee20e69c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/320920 Commit-Queue: Brian Quinlan <[email protected]> Reviewed-by: Alexander Aprelev <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
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: