A FCGI response may contain a "Location" header with no status code. In this
case a 302-Found HTTP response must be returned to the client. However,
while the status code is indeed 302, the reason is wrong. "Found" must be
set instead of "Moved Temporarily".
This patch must be backported as far as 2.2. With the commit
e3e4e0006
("BUG/MINOR: http: Return the right reason for 302"), this should fix the
issue #2208.
else if (isteqi(hdrs[hdr].n, ist("location"))) {
code = 302;
status = ist("302");
- reason = ist("Moved Temporarily");
+ reason = ist("Found");
}
}
if (!code) {