anyproxy Content Length Header is not preserved for HEAD requests

y1aodyip  于 5个月前  发布在  其他
关注(0)|答案(1)|浏览(99)
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.

4uqofj5v

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.

相关问题