]> Cypherpunks repositories - gostls13.git/commit
net/http: fix double-close of req.Body
authorMatt Harden <matt.harden@gmail.com>
Tue, 21 Feb 2017 04:07:44 +0000 (20:07 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 26 Jun 2017 21:25:49 +0000 (21:25 +0000)
commitbd4fcd001c54014209e817c0dd8c8802ccce7607
tree7738606a695f5036ba6f7c181da5c21989fb3239
parenteab99a8d548f8ba864647ab171a44f0a5376a6b3
net/http: fix double-close of req.Body

Add a test and fix for the request body being closed twice.

Fixes #19186

Change-Id: I1e35ad4aebfef68e6099c1dba7986883afdef4d7
Reviewed-on: https://go-review.googlesource.com/37298
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/http/client.go
src/net/http/clientserver_test.go