cvs: php4 /main SAPI.c
| From: | Rasmus Lerdorf | Date: | Wed, 24 Oct 2001 20:10:30 +0000 |
| Subject: | cvs: php4 /main SAPI.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-7974@lists.php.net to get a copy of this message | ||
rasmus Wed Oct 24 16:10:30 2001 EDT
Modified files:
/php4/main SAPI.c
Log:
Let's suppress this warning if always_populate is enabled
Index: php4/main/SAPI.c
diff -u php4/main/SAPI.c:1.121 php4/main/SAPI.c:1.122
--- php4/main/SAPI.c:1.121 Tue Oct 23 16:48:30 2001
+++ php4/main/SAPI.c Wed Oct 24 16:10:30 2001
@@ -303,7 +303,6 @@
if (SG(request_info).request_method
&& !strcmp(SG(request_info).request_method, "POST")) {
if (!SG(request_info).content_type) {
- sapi_module.sapi_error(E_WARNING, "No content-type in POST request");
SG(request_info).content_type_dup = NULL;
if(PG(always_populate_raw_post_data)) {
SG(request_info).post_entry = NULL;
@@ -316,6 +315,8 @@
sapi_module.default_post_reader(TSRMLS_C);
}
}
+ } else {
+ sapi_module.sapi_error(E_WARNING, "No content-type in POST request");
}
} else {
sapi_read_post_data(TSRMLS_C);