]> 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>
Sat, 9 Jan 2010 23:42:19 +0000 (00:42 +0100)
commit81e3b4f48d168da55c7902d51bb71212f2a817d6
treee9277afc640f79e4466c314a87c4c15f1da3337e
parentdcb75c4a83246f4907cdd5ffac9cbd7b71732816
[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.
doc/configuration.txt
include/types/proto_http.h
src/cfgparse.c
src/proto_http.c