]> granicus.if.org Git - apache/commitdiff
make sure that the HTTP_IN filter is in place across internal redirects.
authorGreg Ames <gregames@apache.org>
Tue, 30 Oct 2001 19:21:41 +0000 (19:21 +0000)
committerGreg Ames <gregames@apache.org>
Tue, 30 Oct 2001 19:21:41 +0000 (19:21 +0000)
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

modules/http/http_request.c

index f7dec6aeb5a9c944a9c09a562db201027f0e73ae..b95fb04d7c7959183154d761a99a6e7a0421e1b9 100644 (file)
@@ -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));