You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
http://play.golang.org/p/oUJ95CP-Gv
What is the expected output?
Request body must be copied to response.
What do you see instead?
io.Copy() fails with "http: invalid Read on closed Body".
Which operating system are you using?
Ubuntu 12.10
Which version are you using? (run 'go version')
go version devel +1399878c6731 Tue Jan 08 15:03:30 2013 -0800 linux/amd64
Reading complete request body into a buffer before beginning to write works. Copying to
os.Stdout works too.
The text was updated successfully, but these errors were encountered:
This is by design. HTTP doesn't guarantee you can write a response before reading the
request. Some servers will do it and some clients will do it, but not all, so we
intentionally disallow it, to prevent surprises. It's easier for us to relax this
restriction in the future if we discover we're wrong (spec references and comprehensive
testing of all major clients & servers welcome!) than it is for us to allow it now and
then take it away.
The text was updated successfully, but these errors were encountered: