]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: htx: Replace the function http_find_stline() by http_get_stline()
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 13 May 2019 12:41:27 +0000 (14:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 28 May 2019 05:42:12 +0000 (07:42 +0200)
commit297fbb45fee4f1519421e6416745fdf3c3ec7ea1
tree344c11c5af8d730d5719f2e54399756bb31da6e7
parentb77a1d26a4d1144d679c71e7d1fd114b082f0f27
MINOR: htx: Replace the function http_find_stline() by http_get_stline()

Now, we only return the start-line. If not found, NULL is returned. No lookup is
performed and the HTX message is no more updated. It is now the caller
responsibility to update the position of the start-line to the right value. So
when it is not found, i.e sl_pos is set to -1, it means the last start-line has
been already processed and the next one has not been inserted yet.

It is mandatory to rely on this kind of warranty to store 1xx informational
responses and final reponse in the same HTX message.
include/proto/http_htx.h
src/backend.c
src/cache.c
src/flt_trace.c
src/hlua.c
src/http_fetch.c
src/http_htx.c
src/proto_htx.c
src/stats.c
src/stream_interface.c