1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

back out filter change that is preventing headers to be sent

PR:
Obtained from:
Submitted by: john sterling
Reviewed by:	dougm


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89239 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Doug MacEachern
2001-05-30 05:18:33 +00:00
parent 74ec9a1ba4
commit 654a74cbae
3 changed files with 9 additions and 8 deletions

View File

@@ -295,13 +295,6 @@ static int ap_process_http_connection(conn_rec *c)
return OK; return OK;
} }
static void ap_http_insert_filter(request_rec *r)
{
ap_add_output_filter("BYTERANGE", NULL, r, r->connection);
ap_add_output_filter("CONTENT_LENGTH", NULL, r, r->connection);
ap_add_output_filter("HTTP_HEADER", NULL, r, r->connection);
}
static void register_hooks(apr_pool_t *p) static void register_hooks(apr_pool_t *p)
{ {
ap_hook_pre_connection(ap_pre_http_connection,NULL,NULL, ap_hook_pre_connection(ap_pre_http_connection,NULL,NULL,
@@ -311,7 +304,6 @@ static void register_hooks(apr_pool_t *p)
ap_hook_http_method(http_method,NULL,NULL,APR_HOOK_REALLY_LAST); ap_hook_http_method(http_method,NULL,NULL,APR_HOOK_REALLY_LAST);
ap_hook_default_port(http_port,NULL,NULL,APR_HOOK_REALLY_LAST); ap_hook_default_port(http_port,NULL,NULL,APR_HOOK_REALLY_LAST);
ap_hook_insert_filter(ap_http_insert_filter, NULL, NULL, APR_HOOK_REALLY_LAST);
ap_register_input_filter("HTTP_IN", ap_http_filter, AP_FTYPE_CONNECTION); ap_register_input_filter("HTTP_IN", ap_http_filter, AP_FTYPE_CONNECTION);
ap_register_input_filter("DECHUNK", ap_dechunk_filter, AP_FTYPE_TRANSCODE); ap_register_input_filter("DECHUNK", ap_dechunk_filter, AP_FTYPE_TRANSCODE);
ap_register_output_filter("HTTP_HEADER", ap_http_header_filter, ap_register_output_filter("HTTP_HEADER", ap_http_header_filter,

View File

@@ -517,6 +517,10 @@ static request_rec *internal_internal_redirect(const char *new_uri,
new->output_filters = r->connection->output_filters; new->output_filters = r->connection->output_filters;
new->input_filters = r->connection->input_filters; new->input_filters = r->connection->input_filters;
ap_add_output_filter("BYTERANGE", NULL, new, new->connection);
ap_add_output_filter("CONTENT_LENGTH", NULL, new, new->connection);
ap_add_output_filter("HTTP_HEADER", NULL, new, new->connection);
apr_table_setn(new->subprocess_env, "REDIRECT_STATUS", apr_table_setn(new->subprocess_env, "REDIRECT_STATUS",
apr_psprintf(r->pool, "%d", r->status)); apr_psprintf(r->pool, "%d", r->status));

View File

@@ -590,6 +590,11 @@ request_rec *ap_read_request(conn_rec *conn)
? r->server->keep_alive_timeout * APR_USEC_PER_SEC ? r->server->keep_alive_timeout * APR_USEC_PER_SEC
: r->server->timeout * APR_USEC_PER_SEC)); : r->server->timeout * APR_USEC_PER_SEC));
ap_add_output_filter("BYTERANGE", NULL, r, r->connection);
ap_add_output_filter("CONTENT_LENGTH", NULL, r, r->connection);
ap_add_output_filter("HTTP_HEADER", NULL, r, r->connection);
/* Get the request... */ /* Get the request... */
if (!read_request_line(r)) { if (!read_request_line(r)) {
if (r->status == HTTP_REQUEST_URI_TOO_LARGE) { if (r->status == HTTP_REQUEST_URI_TOO_LARGE) {