Skip to content

Commit 4829b93

Browse files
author
Doug MacEachern
committed
php_input_filter needs to ignore proxy requests
else it swallows POST data that needs to be sent to the downstream server
1 parent ba4a1f2 commit 4829b93

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sapi/apache2filter/sapi_apache2.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ static int php_input_filter(ap_filter_t *f, apr_bucket_brigade *bb,
248248
apr_status_t rv;
249249
TSRMLS_FETCH();
250250

251+
if (f->r->proxyreq) {
252+
return ap_get_brigade(f->next, bb, mode, readbytes);
253+
}
254+
251255
ctx = SG(server_context);
252256

253257
INIT_CTX;

0 commit comments

Comments
 (0)