]> granicus.if.org Git - php/commitdiff
I see no reason no reason to not support chunked encoding requests.
authorAndrei Zmievski <andrei@php.net>
Thu, 15 Dec 2005 00:27:25 +0000 (00:27 +0000)
committerAndrei Zmievski <andrei@php.net>
Thu, 15 Dec 2005 00:27:25 +0000 (00:27 +0000)
Let's ask Apache to decode these requests for us.

sapi/apache/mod_php5.c

index 4ac60b2742dfe2be95e2415aedc0028f90f0eba3..ead048ef524267252306689e74acf38ea0a76273 100644 (file)
@@ -593,7 +593,7 @@ static int send_php(request_rec *r, int display_source_mode, char *filename)
 
                /* Apache 1.2 has a more complex mechanism for reading POST data */
 #if MODULE_MAGIC_NUMBER > 19961007
-               if ((retval = setup_client_block(r, REQUEST_CHUNKED_ERROR))) {
+               if ((retval = setup_client_block(r, REQUEST_CHUNKED_DECHUNK))) {
                        zend_try {
                                zend_ini_deactivate(TSRMLS_C);
                        } zend_end_try();