mirror of
https://github.com/golang/net.git
synced 2026-04-01 02:47:08 +09:00
We close the request body after receiving an error status code. This is supposed to cause cs.writeRequestBody to return errStopReqBodyWrite. Ensure that it does so if it gets an error reading from the post-close body, rather than returning an error which causes the entire request to be aborted. Change-Id: I7c51928cb678f5baf37148f0df6ab196518d39d4 Reviewed-on: https://go-review.googlesource.com/c/net/+/356969 Trust: Damien Neil <dneil@google.com> Run-TryBot: Damien Neil <dneil@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>