Files
leaf/leaf
muyuanjin 409b9a4a6d proxy/http: fix duplicated EOH when rewriting absolute-form to origin-form
When forwarding HTTP/1.x absolute-form requests from the HTTP inbound, we
serialize a new request line/headers and then append the buffered remainder.
However, the remainder starts at the original End-Of-Headers (EOH, CRLFCRLF),
so we ended up emitting two consecutive CRLFCRLF boundaries. That breaks
parsing for some servers, especially with chunked bodies or JSON payloads.

Strip a leading EOH from the remainder before concatenation so only one header
terminator is present.

This change is minimal and only affects the Absolute target format path. CONNECT
and SOCKS remain pure tunnels.
2026-01-01 16:07:32 +08:00
..
2024-10-18 17:05:10 +08:00
2024-10-08 21:12:02 +08:00