]> Cypherpunks repositories - gostls13.git/commit
http: consume request bodies before replying
authorBrad Fitzpatrick <bradfitz@golang.org>
Thu, 14 Apr 2011 17:40:23 +0000 (10:40 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 14 Apr 2011 17:40:23 +0000 (10:40 -0700)
commite27702545ac2d1e5f545fa6b3e39dbcf36bdb023
treef241dec11b498a2a563d9e4686ceb89b28d5629c
parente0533b044daae781ad7b3d01da12a9e68bb2045e
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
src/pkg/http/serve_test.go
src/pkg/http/server.go