From fe651a50d605b812d381c1a57b361c8a65c60c1c Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 19 Nov 2008 21:15:17 +0100 Subject: [PATCH] [MINOR] redirect: in prefix mode a "/" means not to change the URI If the prefix is set to "/", it means the user does not want to alter the original URI, so we don't want to insert a new slash before the original URI. (cherry-picked from commit 02a35c74942c1bce762e996698add1270e6a5030) --- doc/configuration.txt | 5 ++++- src/proto_http.c | 11 ++++++++--- tests/test-redirect.cfg | 4 ++-- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/doc/configuration.txt b/doc/configuration.txt index ca6f293ef0..f92176a5e7 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -2350,7 +2350,10 @@ redirect prefix [code ]