]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http/htx: Use sl_pos directly to replace the start-line
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 13 May 2019 13:22:59 +0000 (15:22 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 28 May 2019 05:42:12 +0000 (07:42 +0200)
commit7b7d507a5b97b33ddd53755927150efd4546b19f
treeec22b622b758176de72fbe54bdeea054ce751bb6
parentdd2ad8518f8782e223c009e47fceeba01caa15fd
MINOR: http/htx: Use sl_pos directly to replace the start-line

Since the HTX start-line is now referenced by position instead of by its payload
address, it is fairly easier to replace it. No need to search the rigth block to
find the start-line comparing the payloads address. It just enough to get the
block at the position sl_pos.
src/http_htx.c