mirror of
https://github.com/eycorsican/leaf.git
synced 2026-12-06 08:02:36 +00:00
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.