commit | 7a676822c292e3f405fc21ac0897393d715a12ea | [log] [tgz] |
---|---|---|
author | Nikola Jokic <jokicnikola07@gmail.com> | Sat Oct 08 17:00:06 2022 +0200 |
committer | Damien Neil <dneil@google.com> | Fri Nov 04 14:56:32 2022 +0000 |
tree | ceb32458cc0f5976fefa78f6d5e5dfb8132aad3a | |
parent | a1278a7f7ee0c218caeda793b867e0568bbe1e77 [diff] |
x/net/http2: gzipReader will reset zr to nil after closing body The existing implementation does not reset gz.zr. After Close, gzipReader closes underlying response body but buffered data can still be read. gzipReader on Close sets the gz.zerr to fs.ErrClosed so next Read after Close will return it immediately. Fixes golang/go#56020 Change-Id: I8a31e4c65656b9abc3023855b8e04342e1e77cbb Reviewed-on: https://go-review.googlesource.com/c/net/+/440555 Reviewed-by: Damien Neil <dneil@google.com> Run-TryBot: Damien Neil <dneil@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Than McIntosh <thanm@google.com>
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.