]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] http: fix double slash prefix with server redirect
authorWilly Tarreau <w@1wt.eu>
Sat, 9 Jan 2010 23:24:22 +0000 (00:24 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 28 Jan 2010 22:16:36 +0000 (23:16 +0100)
commitcd2ae4f3427631488e32519ac67d9ee2a45657c3
tree030f98dfcf1cde0f4cb38c04f5658345f4d1e98b
parent1df8a6a684a60aa42f0b01ad7cdcc414a7dfa6d3
[MINOR] http: fix double slash prefix with server redirect

When using server redirection, it is possible to specify a path
consisting of only one slash. While this is discouraged (risk of
loop) it may sometimes be useful combined with content switching.
The prefixing of a '/' then causes two slashes to be returned in
the response. So we now do as with the other redirects, don't
prepend a slash if it's alone.
(cherry picked from commit dcb75c4a83246f4907cdd5ffac9cbd7b71732816)
src/proto_http.c