From 575b38ee2fb4b18d120a9e98c0327617881c8104 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Mon, 11 Aug 2003 19:40:52 +0000 Subject: [PATCH] MFH: Bugfix #25044 --- main/SAPI.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } -- 2.40.0