cvs: php4(PHP_4_3) /sapi/apache2filter sapi_apache2.c /sapi/apache2handler sapi_apache2.c
| From: | Ilia Alshanetsky | Date: | Fri, 23 May 2003 02:42:22 +0000 |
| Subject: | cvs: php4(PHP_4_3) /sapi/apache2filter sapi_apache2.c /sapi/apache2handler sapi_apache2.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-21219@lists.php.net to get a copy of this message | ||
iliaa Thu May 22 22:42:22 2003 EDT
Modified files: (Branch: PHP_4_3)
/php4/sapi/apache2handler sapi_apache2.c
/php4/sapi/apache2filter sapi_apache2.c
Log:
MFH
Index: php4/sapi/apache2handler/sapi_apache2.c
diff -u php4/sapi/apache2handler/sapi_apache2.c:1.1.2.14
php4/sapi/apache2handler/sapi_apache2.c:1.1.2.15
--- php4/sapi/apache2handler/sapi_apache2.c:1.1.2.14 Wed May 21 05:34:14 2003
+++ php4/sapi/apache2handler/sapi_apache2.c Thu May 22 22:42:22 2003
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: sapi_apache2.c,v 1.1.2.14 2003/05/21 09:34:14 zeev Exp $ */
+/* $Id: sapi_apache2.c,v 1.1.2.15 2003/05/23 02:42:22 iliaa Exp $ */
#include <fcntl.h>
@@ -412,7 +412,7 @@
char *content_type;
const char *auth;
- SG(sapi_headers).http_response_code = 200;
+ SG(sapi_headers).http_response_code = !r->status ? HTTP_OK : r->status;
SG(request_info).content_type = apr_table_get(r->headers_in, "Content-Type");
SG(request_info).query_string = apr_pstrdup(r->pool, r->args);
SG(request_info).request_method = r->method;
Index: php4/sapi/apache2filter/sapi_apache2.c
diff -u php4/sapi/apache2filter/sapi_apache2.c:1.91.2.14
php4/sapi/apache2filter/sapi_apache2.c:1.91.2.15
--- php4/sapi/apache2filter/sapi_apache2.c:1.91.2.14 Wed May 21 05:34:14 2003
+++ php4/sapi/apache2filter/sapi_apache2.c Thu May 22 22:42:22 2003
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: sapi_apache2.c,v 1.91.2.14 2003/05/21 09:34:14 zeev Exp $ */
+/* $Id: sapi_apache2.c,v 1.91.2.15 2003/05/23 02:42:22 iliaa Exp $ */
#include <fcntl.h>
@@ -376,7 +376,7 @@
const char *auth;
PG(during_request_startup) = 0;
- SG(sapi_headers).http_response_code = 200;
+ SG(sapi_headers).http_response_code = !f->r->status ? HTTP_OK : f->r->status;
SG(request_info).content_type = apr_table_get(f->r->headers_in, "Content-Type");
#undef safe_strdup
#define safe_strdup(x) ((x)?strdup((x)):NULL)