Browse Source

@- $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)
experimental/ZendEngine2
Rasmus Lerdorf 25 years ago
parent
commit
71d341e2c0
  1. 2
      main/SAPI.c

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 {

Loading…
Cancel
Save