helly           Mon Aug 11 15:40:52 2003 EDT

  Modified files:              (Branch: PHP_4_3)
    /php-src/main       SAPI.c 
  Log:
  MFH: Bugfix #25044
  
Index: php-src/main/SAPI.c
diff -u php-src/main/SAPI.c:1.155.2.11 php-src/main/SAPI.c:1.155.2.12
--- php-src/main/SAPI.c:1.155.2.11      Wed Jun 18 17:58:07 2003
+++ php-src/main/SAPI.c Mon Aug 11 15:40:52 2003
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: SAPI.c,v 1.155.2.11 2003/06/18 21:58:07 sniper Exp $ */
+/* $Id: SAPI.c,v 1.155.2.12 2003/08/11 19:40:52 helly Exp $ */
 
 #include <ctype.h>
 #include <sys/stat.h>
@@ -575,8 +575,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