]> Cypherpunks repositories - gostls13.git/commit
net/http: fix typo in TestTransportReadToEndReusesConn
authorKeiichi Hirobe <chalenge.akane@gmail.com>
Wed, 5 Aug 2020 16:57:11 +0000 (01:57 +0900)
committerEmmanuel Odeke <emm.odeke@gmail.com>
Sat, 24 Oct 2020 02:36:08 +0000 (02:36 +0000)
commitd05c03536573b8c567d3eefaad2aafbf89678015
tree2a63ee6a25a999f88c5fc3d1d4c01ea4529f39f6
parent57af9745bfad2c20ed6842878e373d6c5b79285a
net/http: fix typo in TestTransportReadToEndReusesConn

The test sets a Content-Type where it looks like it wants a Content-Length. The test passes because the Content-Length header is automatically added anyway, but fix the typo and set Content-Length as intended.

Change-Id: Ic2af778f82c3e9d58e164892f6ac6ef5745f884f
Reviewed-on: https://go-review.googlesource.com/c/go/+/246977
Reviewed-by: Damien Neil <dneil@google.com>
Trust: Alberto Donizetti <alb.donizetti@gmail.com>
Trust: Damien Neil <dneil@google.com>
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/net/http/transport_test.go