commit | 4a448f8816b333a409e4ee05c50963107b2c8796 | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Mon Nov 01 12:02:43 2021 -0700 |
committer | Damien Neil <dneil@google.com> | Mon Nov 01 19:34:20 2021 +0000 |
tree | 958a650f8ab2f9ac3f08709911e95947cdc84cf1 | |
parent | 99673261e6eb41edd6bf476249e027e42f4bf5b1 [diff] |
http2: set ContentLength to -1 for HEAD response with no Content-Length When reading a response to a HEAD request with no Content-Length, set the Response ContentLength to -1 (unknown) rather than 0. Fixes failing net/http TestH12_HeadContentLengthNoBody. Change-Id: I472cbcf555e7f70bc41f58bf96da3d3c5bed9654 Reviewed-on: https://go-review.googlesource.com/c/net/+/360376 Trust: Damien Neil <dneil@google.com> Run-TryBot: Damien Neil <dneil@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This repository holds supplementary Go networking libraries.
The easiest way to install is to run go get -u golang.org/x/net
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/net
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html. The main issue tracker for the net repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/net:” in the subject line, so it is easy to find.