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
[Breaking Change Request] [io/http] Drop Content-Length:0 header from CONNECT,DELETE,GET,HEAD requests #45871
Comments
@franklinyow, just wanted to let you know that announcement email has been sent out (https://groups.google.com/a/dartlang.org/g/announce/c/b0cncgjcRf4) |
What about other methods that also don't have defined semantics for a payload, like |
Good question, thanks for pointing that out. |
any updates on this @franklinyow ? |
Ping @vsmenon @matanlurey @Hixie for approval |
Following the standards SGTM. |
lgtm |
Approved |
Any updates? |
If I read the information in the commit correctly, the change is included in the dev releases since 2.14.0-181.0.dev |
Fixed in 6c254fa |
Summary
We propose to not to include
Content-Length
header in CONNECT,DELETE,GET,HEAD http requests when its value is0
(when there is no body as part of http request).Rationale
Presence of
Content-Length:0
header runs against guidelines provided in RFC-7320 https://tools.ietf.org/html/rfc7230#section-3.3.2, which states thatThe fact that dart:io
HttpClientRequest
code includesContent-Length:0
header inGET
requests was recently found to be a culprit of inability for Dart http client code to talk to Google Cloud Run websocket services (see #45139). So this change will fix that problem.See https://dart-review.googlesource.com/c/sdk/+/194881 for the actual change.
The text was updated successfully, but these errors were encountered: