Skip to content
Browse files

@- $HTTP_RAW_POST_DATA was not populated on a missing content-type ev…

…en 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)
  • Loading branch information...
1 parent 72fc6bc commit 71d341e2c0eecc94e11428d821732fda8a3989be @rlerdorf rlerdorf committed Oct 23, 2001
Showing with 1 addition and 1 deletion.
  1. +1 −1 main/SAPI.c
View
2 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 {

0 comments on commit 71d341e

Please sign in to comment.
Something went wrong with that request. Please try again.