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
Could golang net package automatically add Expect: 100-continue
header if body size > 1024
#39637
Comments
Adding the header is one thing, the client and the server has to also have expect support. Expect support was added back in the day when modems were so slow you didn't want to try to send a large request only to find the server hung up 80% of the way through because the request was larger than it permitted. What is the problem you are trying to solve? |
@davecheney thanks for the reply. Not for a specific problem. The main idea is to follow up RFC protocol and conform to most HTTP client libraries, which could help to avoid potential issues for development. |
Thanks for your reply. I’d like to see some analysis on which clients, and more importantly, servers correctly implement expect 100. From my experience the prevalence of expect usage is very low. |
/cc @bradfitz as presumptive owner for a decision. |
I think this would probably cause more troubles overall. Also, the Request.Body length can be unknown. |
@davecheney agree with the idea that "the prevalence of expect usage is very low" |
Based on the responses so far I am closing this ticket for now. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?What did you expect to see?
Expect: 100-continue
header if body size > 1024. Do golang net package support it?What did you see instead?
The text was updated successfully, but these errors were encountered: