summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2001-10-24 20:10:30 +0000
committerRasmus Lerdorf <rasmus@php.net>2001-10-24 20:10:30 +0000
commitdb75202426db42712ad58b3ca502442a35d2fbc3 (patch)
tree56ee259ab9076b41cca740cf4ba6da6200c6c543
parent35ace375a98b650b2ab2598fdb8898975c323725 (diff)
downloadphp-git-db75202426db42712ad58b3ca502442a35d2fbc3.tar.gz
Let's suppress this warning if always_populate is enabled
-rw-r--r--main/SAPI.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/SAPI.c b/main/SAPI.c
index 642a609ee3..b895d756dc 100644
--- a/main/SAPI.c
+++ b/main/SAPI.c
@@ -303,7 +303,6 @@ SAPI_API void sapi_activate(TSRMLS_D)
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_API void sapi_activate(TSRMLS_D)
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);