]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] http redirect: add the ability to append a '/' to the URL
authorWilly Tarreau <w@1wt.eu>
Sat, 9 Jan 2010 23:42:19 +0000 (00:42 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 28 Jan 2010 22:16:37 +0000 (23:16 +0100)
commit11c77a39b7fb24dcc62011a7e5d7d45fb973af79
tree0ce6b472928691475f9c77ba32a44c35f4d6dc6e
parentcd2ae4f3427631488e32519ac67d9ee2a45657c3
[MINOR] http redirect: add the ability to append a '/' to the URL

Sometimes it can be desired to return a location which is the same
as the request with a slash appended when there was not one in the
request. A typical use of this is for sending a 301 so that people
don't reference links without the trailing slash. The name of the
new option is "append-slash" and it can be used on "redirect"
statements in prefix mode.

(cherry picked from commit 81e3b4f48d168da55c7902d51bb71212f2a817d6)
doc/configuration.txt
include/types/proto_http.h
src/cfgparse.c
src/proto_http.c