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);
                                }



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to