]> granicus.if.org Git - php/commitdiff
make POST requests work again
authorStefan Esser <sesser@php.net>
Sun, 18 Aug 2002 13:05:44 +0000 (13:05 +0000)
committerStefan Esser <sesser@php.net>
Sun, 18 Aug 2002 13:05:44 +0000 (13:05 +0000)
sapi/apache/mod_php4.c

index 4e9e1cf05363156510631b4d3b41926b8b3c8a87..2d81b78935f941490bb83a67ca0c6d8988a4c897 100644 (file)
@@ -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) {