]> Cypherpunks repositories - gostls13.git/commit
net/http: close resp.Body when error occurred during redirection
authorWeichao Tang <tevic.tt@gmail.com>
Tue, 18 Apr 2017 02:57:12 +0000 (10:57 +0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 27 Apr 2017 14:28:47 +0000 (14:28 +0000)
commite51e0f9cdd2a351fb1cb0ab6405c02d58c35d537
tree81a571a74135b53c8b0d4f12ef94b6f346d0697c
parent2b6c58f6d559ef2621f677e016aba08a6b8aad19
net/http: close resp.Body when error occurred during redirection

Fixes #19976

Change-Id: I48486467066784a9dcc24357ec94a1be85265a6f
Reviewed-on: https://go-review.googlesource.com/40940
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/client.go
src/net/http/response.go