cvs: php-src /main SAPI.c

From: Date: Mon, 11 Aug 2003 19:36:26 +0000
Subject: cvs: php-src /main SAPI.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-23100@lists.php.net to get a copy of this message
helly Mon Aug 11 15:36:26 2003 EDT Modified files: /php-src/main SAPI.c Log: Bugfix #25044 Index: php-src/main/SAPI.c diff -u php-src/main/SAPI.c:1.175 php-src/main/SAPI.c:1.176 --- php-src/main/SAPI.c:1.175 Tue Jun 10 16:03:41 2003 +++ php-src/main/SAPI.c Mon Aug 11 15:36:26 2003 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: SAPI.c,v 1.175 2003/06/10 20:03:41 imajes Exp $ */ +/* $Id: SAPI.c,v 1.176 2003/08/11 19:36:26 helly Exp $ */ #include <ctype.h> #include <sys/stat.h> @@ -585,8 +585,9 @@ 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); }

« previous php.cvs (#23100) next »