mirror of
https://github.com/apache/httpd.git
synced 2025-08-07 04:02:58 +03:00
Get internal redirects working by initializing the output_filters
list. We start over with only core_filter just like a fresh request. Processing of the new URI will determine what filters (if any) are appropriate. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86256 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -75,6 +75,7 @@
|
||||
#include "http_protocol.h"
|
||||
#include "http_log.h"
|
||||
#include "http_main.h"
|
||||
#include "util_filter.h"
|
||||
#include "util_charset.h"
|
||||
#include "apr_strings.h"
|
||||
#include "apr_file_io.h"
|
||||
@@ -1387,6 +1388,8 @@ static request_rec *internal_internal_redirect(const char *new_uri,
|
||||
apr_table_setn(new->subprocess_env, "REDIRECT_STATUS",
|
||||
apr_psprintf(r->pool, "%d", r->status));
|
||||
|
||||
ap_add_filter("CORE", NULL, new);
|
||||
|
||||
/*
|
||||
* XXX: hmm. This is because mod_setenvif and mod_unique_id really need
|
||||
* to do their thing on internal redirects as well. Perhaps this is a
|
||||
|
Reference in New Issue
Block a user