Skip to content

Do not use "Transfer-Encoding: chunked" header for proxied DELETE requests (again) #960

@Turbo87

Description

@Turbo87

This issue is related to PR #373 where this exact bug was already fixed by a89e2f2, but then later apparently introduced again by 8663ac1.

The actual problem is that DELETE requests with both Content-Length: 0 and Transfer-Encoding: chunked are illegal and are being rejected by some servers (in this case nodejs since v0.10.42). If the incoming request only has the Transfer-Encoding header the proxy will somehow automatically set the Content-Length header to 0 but won't remove the encoding header which leads to this issue.

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