]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: http: move http_get_path() to http.c
authorWilly Tarreau <w@1wt.eu>
Mon, 10 Sep 2018 15:45:34 +0000 (17:45 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 11 Sep 2018 08:30:25 +0000 (10:30 +0200)
commit6b952c81014a48a8d841e311d94afc68a1d573c8
tree9e39ca09f5bd5b3f799a1f8bd67ff61013371b67
parent35b51c6e5b75016b2c29d8d1219a09768291c002
REORG: http: move http_get_path() to http.c

This function is purely HTTP once http_txn is put aside. So the original
one was renamed to http_txn_get_path() and it extracts the relevant offsets
from the txn to pass them to http_get_path(). One benefit of the new version
is that it returns the length at the same time so that allowed to slightly
simplify http_get_path_from_string() which had to look up the end pointer
previously and which is not needed anymore.
include/common/http.h
include/proto/proto_http.h
src/cache.c
src/hlua.c
src/http.c
src/proto_http.c