]> Cypherpunks repositories - gostls13.git/commit
net/http: don't panic after request if Handler sets Request.Body to nil
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 3 Nov 2015 20:04:20 +0000 (12:04 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 4 Nov 2015 00:00:15 +0000 (00:00 +0000)
commitb1050542c1dcff9f5902ab2745aae3ccc8340c11
tree0b1132b9e6c07128aa4502960b0dadf978011011
parent9179c9cb5c369e075a65a2a5addd4a0e0b099b16
net/http: don't panic after request if Handler sets Request.Body to nil

The Server's server goroutine was panicing (but recovering) when
cleaning up after handling a request. It was pretty harmless (it just
closed that one connection and didn't kill the whole process) but it
was distracting.

Updates #13135

Change-Id: I2a0ce9e8b52c8d364e3f4ce245e05c6f8d62df14
Reviewed-on: https://go-review.googlesource.com/16572
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/net/http/serve_test.go
src/net/http/server.go