From e3e4e00063f359d6113144bddff67d3557a9eedb Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Mon, 17 Jul 2023 08:47:12 +0200 Subject: [PATCH] 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. --- src/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http.c b/src/http.c index 8aef755fd..18f111c95 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";