Skip to content

Bug: Zero length deflate responses are never fulfilled #922

@nsmaciej

Description

@nsmaciej

Some older ISS servers can send zero-length deflate responses. This causes the response to ‘slip through the cracks’, leading to the response promise to never be fulfilled.

I created a PR #903 to fix this over a month ago, but I am creating an issue due to inactivity.

Reproduction

More detail can be be found in the PR. This affects both version 2.x and 3.x. Essentially any response similar to

HTTP/1.1 200 OK
Content-Encoding: deflate
Content-Length: 0
Server: Microsoft-IIS/7.5

Expected behaviour

The node-fetch response promise should be fulfilled.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions