From: Christopher Faulet Date: Mon, 17 Jul 2023 06:47:12 +0000 (+0200) Subject: BUG/MINOR: http: Return the right reason for 302 X-Git-Tag: v2.9-dev2~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3e4e0006;p=thirdparty%2Fhaproxy.git BUG/MINOR: http: Return the right reason for 302 Because of a cut/paste error, the wrong reason was returned for 302 code. The 301 reason was returned instead. Thus now, "Found" is returned for 302, instead of "Moved Permanently". This pathc should fix the issue 2208. It must be backported to all stable versions. --- diff --git a/src/http.c b/src/http.c index 8aef755fd2..18f111c955 100644 --- a/src/http.c +++ b/src/http.c @@ -413,7 +413,7 @@ const char *http_get_reason(unsigned int status) case 226: return "IM Used"; case 300: return "Multiple Choices"; case 301: return "Moved Permanently"; - case 302: return "Moved Temporarily"; + case 302: return "Found"; case 303: return "See Other"; case 304: return "Not Modified"; case 305: return "Use Proxy";