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.
1条答案
按热度按时间4uqofj5v1#
I'm having the exact same issue on AnyProxy 4.1.2. I'm currently on Windows. The application making these HEAD requests relies on reading the Content-Length header. It seems that the Content-Length header that's sent to the client might be auto-generated based on the actual body response of the request rather than the Content-Length header that was given by the server.