From: Rasmus Lerdorf Date: Tue, 23 Oct 2001 19:34:29 +0000 (+0000) Subject: @- $HTTP_RAW_POST_DATA was not populated on a missing content-type even when X-Git-Tag: POST_PARAMETER_PARSING_API~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=71d341e2c0eecc94e11428d821732fda8a3989be;p=php @- $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) --- 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 {