-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Run-TryBot: Damien Neil <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Than McIntosh <[email protected]>
- Loading branch information
1 parent
a1278a7
commit 7a67682
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters