]> Cypherpunks repositories - gostls13.git/commit
net/http: refactor testing of Request.Body on 0 ContentLength
authorBrad Fitzpatrick <bradfitz@golang.org>
Fri, 30 Sep 2016 17:40:58 +0000 (10:40 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 30 Sep 2016 19:45:34 +0000 (19:45 +0000)
commit9491e7d65e09644eb7db4e2ed5ff0139571cedf3
treea6ac35613bf1a51dfba3ce03d40ecc5d141e178c
parentab6ba99484b637bad0c5a5fa2c590834c14746c7
net/http: refactor testing of Request.Body on 0 ContentLength

Code movement only, to look more like the equivalent http2 code, and
to make an upcoming fix look more obvious.

Updates #16002 (to be fixed once this code is in)

Change-Id: Iaa4f965be14e98f9996e7c4624afe6e19bed1a80
Reviewed-on: https://go-review.googlesource.com/30087
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
src/net/http/request.go
src/net/http/transfer.go