anyproxy icon indicating copy to clipboard operation
anyproxy copied to clipboard

需求:对于配置了Transfer-Encoding:chunked支持的响应体返回原始body的Content-Length

Open 10W8K opened this issue 9 years ago • 1 comments

@codingfishman 需求是在beforeSendResponse取response header内的content-length 但是服务器若设置响应体支持Transfer-Encoding:chunked,那么就不会返回content-length 所以希望支持一下,谢谢

The version of the AnyProxy

4.x

10W8K avatar Aug 12 '17 08:08 10W8K

已修复,现在x-anyproxy-origin-content-length将作为实际的content length, 且在 beforeSendReponse中可以使用

codingfishman avatar Aug 12 '17 15:08 codingfishman