mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-18 09:24:31 +00:00
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.
This commit is contained in:
parent
b982fc2177
commit
e3e4e00063
@ -413,7 +413,7 @@ const char *http_get_reason(unsigned int status)
|
|||||||
case 226: return "IM Used";
|
case 226: return "IM Used";
|
||||||
case 300: return "Multiple Choices";
|
case 300: return "Multiple Choices";
|
||||||
case 301: return "Moved Permanently";
|
case 301: return "Moved Permanently";
|
||||||
case 302: return "Moved Temporarily";
|
case 302: return "Found";
|
||||||
case 303: return "See Other";
|
case 303: return "See Other";
|
||||||
case 304: return "Not Modified";
|
case 304: return "Not Modified";
|
||||||
case 305: return "Use Proxy";
|
case 305: return "Use Proxy";
|
||||||
|
Loading…
Reference in New Issue
Block a user