cvs: php4 /main SAPI.c

From: Date: Tue, 23 Oct 2001 19:34:30 +0000
Subject: cvs: php4 /main SAPI.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-7966@lists.php.net to get a copy of this message
rasmus Tue Oct 23 15:34:30 2001 EDT Modified files: /php4/main SAPI.c Log: @- $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) Index: php4/main/SAPI.c diff -u php4/main/SAPI.c:1.119 php4/main/SAPI.c:1.120 --- php4/main/SAPI.c:1.119 Sun Oct 21 13:41:15 2001 +++ php4/main/SAPI.c Tue Oct 23 15:34:29 2001 @@ -301,7 +301,7 @@ 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 {

« previous php.cvs (#7966) next »