]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] redirect: add support for the "drop-query" option
authorWilly Tarreau <w@1wt.eu>
Wed, 19 Nov 2008 19:03:04 +0000 (20:03 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 7 Dec 2008 22:42:01 +0000 (23:42 +0100)
commit79da4697ca0b70059464633cea3f10c40b76423a
treeda65ef33df347f4e2ceae5910a8b7a33d415afc4
parent106cb76c4b93c3317f7747150ea46caf0f0f0d39
[MINOR] redirect: add support for the "drop-query" option

If "drop-query" is present on a "redirect" line using the "prefix" mode,
then the returned Location header will be the request URI without the
query-string. This may be used on some login/logout pages, or when it
must be decided to redirect the user to a non-secure server.

(cherry-picked from commit f2d361ccd73aa16538ce767c766362dd8f0a88fd)
doc/configuration.txt
include/types/proto_http.h
include/types/proxy.h
src/cfgparse.c
src/proto_http.c
tests/test-redirect.cfg