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:
Christopher Faulet 2023-07-17 08:47:12 +02:00
parent b982fc2177
commit e3e4e00063

View File

@ -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";