commit | 99673261e6eb41edd6bf476249e027e42f4bf5b1 | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Fri Oct 29 14:18:46 2021 -0700 |
committer | Damien Neil <dneil@google.com> | Fri Oct 29 22:46:45 2021 +0000 |
tree | ff865fc279551878ba87c96480c1004c91614974 | |
parent | 540bb53d3b2ef1be1c9bd6bffb0281fc6c7038ca [diff] |
http2: set Response.ContentLength to 0 when headers end stream When reading a response with no Content-Length and no body, set the Response ContentLength to 0. Fixes failing net/http TestH2_204NoBody and TestH2_304_NoBody tests. Change-Id: I8ded6f8febfce62e00f2c37de65cbb09b306f7c6 Reviewed-on: https://go-review.googlesource.com/c/net/+/359834 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>
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.