]> Cypherpunks repositories - gostls13.git/commit
net/http: rewind request body unconditionally
authorAleksandr Razumov <ar@cydev.ru>
Tue, 28 Aug 2018 00:29:01 +0000 (03:29 +0300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 2 Oct 2018 21:11:23 +0000 (21:11 +0000)
commit3aa3c052e302add1d30b0481b0347c47f190bef9
tree3e600852d5587ce8eff003660da7eafe8f218559
parent0906d648aa173f65aaafd6296d43247b426f05f3
net/http: rewind request body unconditionally

When http2 fails with ErrNoCachedConn the request is retried with body
that has already been read.

Fixes #25009

Change-Id: I51ed5c8cf469dd8b17c73fff6140ab80162bf267
Reviewed-on: https://go-review.googlesource.com/c/131755
Run-TryBot: Iskander Sharipov <iskander.sharipov@intel.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/transport.go
src/net/http/transport_internal_test.go