]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: filters/http: Slightly update the parsing of chunks
authorChristopher Faulet <cfaulet@qualys.com>
Mon, 14 Dec 2015 13:52:13 +0000 (14:52 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 9 Feb 2016 13:53:15 +0000 (14:53 +0100)
commit113f7decfccabecfa26f8b9925c05ac38432d5d7
treedd9e97db5e782093c95bfc3170c8a2151c28fdd0
parentb77c5c2693b25426231f2a51f22f38e6ce7f733a
MINOR: filters/http: Slightly update the parsing of chunks

Now, http_parse_chunk_size and http_skip_chunk_crlf return the number of bytes
parsed on success. http_skip_chunk_crlf does not use msg->sol anymore.

On the other hand, http_forward_trailers is unchanged. It returns >0 if the end
of trailers is reached and 0 if not. In all cases (except if an error is
encountered), msg->sol contains the length of the last parsed part of the
trailer headers.

Internal doc and comments about msg->sol has been updated accordingly.
doc/internals/body-parsing.txt
include/types/proto_http.h
src/proto_http.c