From: Greg Ames Date: Tue, 30 Oct 2001 19:21:41 +0000 (+0000) Subject: make sure that the HTTP_IN filter is in place across internal redirects. X-Git-Tag: 2.0.27~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=da57dc70de2e8398a78ab0e89879b7400b9f89b3;p=apache make sure that the HTTP_IN filter is in place across internal redirects. Without this, we see an extra socket read + timeout on POSTs. If the client sends in another request, we loop consuming memory. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91695 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_request.c b/modules/http/http_request.c index f7dec6aeb5..b95fb04d7c 100644 --- a/modules/http/http_request.c +++ b/modules/http/http_request.c @@ -390,6 +390,8 @@ static request_rec *internal_internal_redirect(const char *new_uri, new->output_filters = r->connection->output_filters; new->input_filters = r->connection->input_filters; + ap_add_input_filter("HTTP_IN", NULL, new, new->connection); + apr_table_setn(new->subprocess_env, "REDIRECT_STATUS", apr_psprintf(r->pool, "%d", r->status));