]> granicus.if.org Git - php/commitdiff
@- $HTTP_RAW_POST_DATA was not populated on a missing content-type even when
authorRasmus Lerdorf <rasmus@php.net>
Tue, 23 Oct 2001 19:34:29 +0000 (19:34 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Tue, 23 Oct 2001 19:34:29 +0000 (19:34 +0000)
@  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

index 0f049cb60c369e1b7883a8de98c750ae378060ad..4a6429975dc9480334e850d61d4e373cc697ac54 100644 (file)
@@ -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 {