]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http: add a new fetch "query" to extract the request's query string
authorWilly Tarreau <w@1wt.eu>
Mon, 19 Jan 2015 14:06:26 +0000 (15:06 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Jan 2015 18:47:47 +0000 (19:47 +0100)
commit49ad95cc8eac46e463dc38137d7188b3b6c8c5e4
tree4790aeee36824abdebcc8fb21d726e2d37228fa9
parentd025648f7cd149dd2f3009eaead1098bed5b1273
MINOR: http: add a new fetch "query" to extract the request's query string

This fetch extracts the request's query string, which starts after the first
question mark. If no question mark is present, this fetch returns nothing. If
a question mark is present but nothing follows, it returns an empty string.
This means it's possible to easily know whether a query string is present
using the "found" matching method. This fetch is the completemnt of "path"
which stops before the question mark.
doc/configuration.txt
src/proto_http.c