]> granicus.if.org Git - php/commitdiff
php_input_filter needs to ignore proxy requests
authorDoug MacEachern <dougm@php.net>
Sun, 19 Aug 2001 21:07:50 +0000 (21:07 +0000)
committerDoug MacEachern <dougm@php.net>
Sun, 19 Aug 2001 21:07:50 +0000 (21:07 +0000)
else it swallows POST data that needs to be sent to the downstream server

sapi/apache2filter/sapi_apache2.c

index 026fe4dc54ae55adc86a0d55d1e5777a30932adf..89003f8a9e9f864951941e25048b2f1351962f51 100644 (file)
@@ -248,6 +248,10 @@ static int php_input_filter(ap_filter_t *f, apr_bucket_brigade *bb,
        apr_status_t rv;
        TSRMLS_FETCH();
 
+       if (f->r->proxyreq) {
+               return ap_get_brigade(f->next, bb, mode, readbytes);
+       }
+
        ctx = SG(server_context);
 
        INIT_CTX;