diff options
| author | Brad Fitzpatrick <brad@danga.com> | 2010-12-01 20:00:19 -0800 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2010-12-01 20:00:19 -0800 |
| commit | 042a7a81d3e766c4e1e1dffc269aa48f7c6ab50b (patch) | |
| tree | 99586235ee1307f3a5722803e8b31909db0a1c6d /src/pkg/http/server.go | |
| parent | 5e4882a3257b4885d6a91dad348f00c843db6e66 (diff) | |
| download | go-042a7a81d3e766c4e1e1dffc269aa48f7c6ab50b.tar.xz | |
http: consume request body before next request
Fixes #1306.
R=rsc
CC=golang-dev
https://golang.org/cl/3332043
Diffstat (limited to 'src/pkg/http/server.go')
| -rw-r--r-- | src/pkg/http/server.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/http/server.go b/src/pkg/http/server.go index 68fd32b5f3..4c1c0914d1 100644 --- a/src/pkg/http/server.go +++ b/src/pkg/http/server.go @@ -362,6 +362,7 @@ func (w *response) finishRequest() { io.WriteString(w.conn.buf, "\r\n") } w.conn.buf.Flush() + w.req.Body.Close() } // Flush implements the ResponseWriter.Flush method. |
