From 71d341e2c0eecc94e11428d821732fda8a3989be Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Tue, 23 Oct 2001 19:34:29 +0000 Subject: [PATCH] @- $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) --- main/SAPI.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.40.0