mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-01-13 21:00:59 +01:00
In theory the principle is simple as we just need to send HTTP chunks if the client is 1.1 compatible. In practice it's harder because we have to append a CR LF after each block of data and we're never sure to have the room for this. In order not to have to deal with this, we instead send the CR LF prior to each chunk size. The only issue is for the first chunk and for this reason we avoid to send the empty header line when using chunked encoding.