Skip to content

net/http: no error after reading from closed gzip HTTP/2 response body #56020

Closed
@neild

Description

@neild

When reading a gzipped response body (via an *http2.gzipReader), closing the body doesn't necessarily cause subsequent reads to fail because gzipReader.Close only closes the underlying response body. Buffered data in the gzip.Reader can still be read.

This causes the existing test TestTransportGzip to fail when run in HTTP/2 mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions