alibaba / alibaba/anyproxy

Content Length Header is not preserved for HEAD requests

Open
#365 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.9k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

#### Which platform are you running AnyProxy
Mac

#### The version of the AnyProxy
4.0.6

#### Your expected behavior of AnyProxy
When Proxying HEAD requests, the content-length header should be preserved unless modified by a hook

#### The actual behavior of AnyProxy
Content Length is set to 0 as the body is an empty buffer.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how AnyProxy handles HEAD requests and calculates the Content-Length header, then reproduce the reported behavior on the NodeJS proxy path. Done means a proxied HEAD request preserves its original Content-Length unless a hook changes it; add or update coverage if the relevant test location is found.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend, networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.