summaryrefslogtreecommitdiff
path: root/main/SAPI.c
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2001-10-23 19:34:29 +0000
committerRasmus Lerdorf <rasmus@php.net>2001-10-23 19:34:29 +0000
commit71d341e2c0eecc94e11428d821732fda8a3989be (patch)
treed9b43b5478cdc5d5764cabb62be32d29a7757f30 /main/SAPI.c
parent72fc6bc4b154b5887deb04a627dbe8f85b152c92 (diff)
downloadphp-git-71d341e2c0eecc94e11428d821732fda8a3989be.tar.gz
@- $HTTP_RAW_POST_DATA was not populated on a missing content-type even when
@ always_populate_raw_post_data was on - fixed. (Rasmus) $HTTP_RAW_POST_DATA was not populated on a missing content-type even when always_populate_raw_post_data was on - fixed. (Rasmus)
Diffstat (limited to 'main/SAPI.c')
-rw-r--r--main/SAPI.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/SAPI.c b/main/SAPI.c
index 0f049cb60c..4a6429975d 100644
--- a/main/SAPI.c
+++ b/main/SAPI.c
@@ -301,7 +301,7 @@ SAPI_API void sapi_activate(TSRMLS_D)
if (SG(server_context)) {
if (SG(request_info).request_method
&& !strcmp(SG(request_info).request_method, "POST")) {
- if (!SG(request_info).content_type) {
+ if (!SG(request_info).content_type && !PG(always_populate_raw_post_data)) {
sapi_module.sapi_error(E_WARNING, "No content-type in POST request");
SG(request_info).content_type_dup = NULL;
} else {