commit | e27702545ac2d1e5f545fa6b3e39dbcf36bdb023 | [log] [tgz] |
---|---|---|
author | Brad Fitzpatrick <bradfitz@golang.org> | Thu Apr 14 10:40:23 2011 -0700 |
committer | Brad Fitzpatrick <bradfitz@golang.org> | Thu Apr 14 10:40:23 2011 -0700 |
tree | f241dec11b498a2a563d9e4686ceb89b28d5629c | |
parent | e0533b044daae781ad7b3d01da12a9e68bb2045e [diff] |
http: consume request bodies before replying This fixes our http behavior (even if Handlers forget to consume a request body, we do it for them before we send their response header), fixes the racy TestServerExpect, and adds TestServerConsumesRequestBody. With GOMAXPROCS>1, the http tests now seem race-free. R=rsc CC=golang-dev https://golang.org/cl/4419042