mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
net/http: unskip TestDisableContentLength/h2
h2_bundle.go has been updated. Change-Id: I055b8db9aab964621c980e4731011c89f7694405 Reviewed-on: https://go-review.googlesource.com/c/go/+/649496 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Damien Neil <dneil@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
parent
a8487dadeb
commit
c0d96f30e8
@ -7128,10 +7128,6 @@ func testHeadBody(t *testing.T, mode testMode, chunked bool, method string) {
|
||||
// or disabled when the header is set to nil.
|
||||
func TestDisableContentLength(t *testing.T) { run(t, testDisableContentLength) }
|
||||
func testDisableContentLength(t *testing.T, mode testMode) {
|
||||
if mode == http2Mode {
|
||||
t.Skip("skipping until h2_bundle.go is updated; see https://go-review.googlesource.com/c/net/+/471535")
|
||||
}
|
||||
|
||||
noCL := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) {
|
||||
w.Header()["Content-Length"] = nil // disable the default Content-Length response
|
||||
fmt.Fprintf(w, "OK")
|
||||
|
Loading…
x
Reference in New Issue
Block a user