mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
removed bogus paranoid header checking
This commit is contained in:
parent
8b7e9d7774
commit
8841dfc995
@ -321,12 +321,8 @@ SAPI_API void sapi_activate(TSRMLS_D)
|
||||
it is up to the webserver to decide whether to allow a method or not
|
||||
*/
|
||||
SG(request_info).content_type_dup = NULL;
|
||||
if(PG(always_populate_raw_post_data)) {
|
||||
if(sapi_module.default_post_reader) {
|
||||
sapi_module.default_post_reader(TSRMLS_C);
|
||||
}
|
||||
} else {
|
||||
sapi_module.sapi_error(E_WARNING, "No content-type in %s request", SG(request_info).request_method);
|
||||
if(sapi_module.default_post_reader) {
|
||||
sapi_module.default_post_reader(TSRMLS_C);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user