commit | 6b952c81014a48a8d841e311d94afc68a1d573c8 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon Sep 10 17:45:34 2018 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Sep 11 10:30:25 2018 +0200 |
tree | 9e39ca09f5bd5b3f799a1f8bd67ff61013371b67 | |
parent | 35b51c6e5b75016b2c29d8d1219a09768291c002 [diff] |
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.