diff options
author | Stefan Esser <sesser@php.net> | 2002-08-18 13:05:44 +0000 |
---|---|---|
committer | Stefan Esser <sesser@php.net> | 2002-08-18 13:05:44 +0000 |
commit | 8d2bc707526c745ed2283830a40ae1fd39928b6a (patch) | |
tree | b72df7960e0b5e6a8ed8266b159b8de984e7a738 /sapi/apache/mod_php4.c | |
parent | 05156fa3490639b99e788ae3d31377c29a77d02f (diff) | |
download | php-git-8d2bc707526c745ed2283830a40ae1fd39928b6a.tar.gz |
make POST requests work again
Diffstat (limited to 'sapi/apache/mod_php4.c')
-rw-r--r-- | sapi/apache/mod_php4.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sapi/apache/mod_php4.c b/sapi/apache/mod_php4.c index 4e9e1cf053..2d81b78935 100644 --- a/sapi/apache/mod_php4.c +++ b/sapi/apache/mod_php4.c @@ -135,7 +135,9 @@ int sapi_apache_read_post(char *buffer, uint count_bytes TSRMLS_DC) * the rest of the request. RFC 2616 * */ - if( !ap_should_client_block(r) ) return total_read_bytes; + if (!SG(read_post_bytes) && !ap_should_client_block(r)) { + return total_read_bytes; + } handler = signal(SIGPIPE, SIG_IGN); while (total_read_bytes<count_bytes) { |