From: Marcus Boerger Date: Mon, 11 Aug 2003 19:40:52 +0000 (+0000) Subject: MFH: Bugfix #25044 X-Git-Tag: php-4.3.3RC4~48 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=575b38ee2fb4b18d120a9e98c0327617881c8104;p=php MFH: Bugfix #25044 --- diff --git a/main/SAPI.c b/main/SAPI.c index 98edd41e6d..00d8142c41 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -575,8 +575,9 @@ SAPI_API int sapi_header_op(sapi_header_op_enum op, void *arg TSRMLS_DC) efree(mimetype); SG(sapi_headers).send_default_content_type = 0; } else if (!STRCASECMP(header_line, "Location")) { - if (SG(sapi_headers).http_response_code < 300 || - SG(sapi_headers).http_response_code > 307) { + if ((SG(sapi_headers).http_response_code < 300 || + SG(sapi_headers).http_response_code > 307) && + SG(sapi_headers).http_response_code != 201) { /* Return a Found Redirect if one is not already specified */ sapi_update_response_code(302 TSRMLS_CC); }