From f2b58b330f368b47267a98ebd9d3b5e8385affc1 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Mon, 25 Sep 2000 11:31:14 +0000 Subject: [PATCH] mod_charset_lite no longer ignores subrequests. (Some logic in mod_charset_lite to avoid problems with subrequests is forthcoming.) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86314 13f79535-47bb-0310-9956-ffa450edef68 --- modules/experimental/mod_charset_lite.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/modules/experimental/mod_charset_lite.c b/modules/experimental/mod_charset_lite.c index 259852d882..0f93b3a279 100644 --- a/modules/experimental/mod_charset_lite.c +++ b/modules/experimental/mod_charset_lite.c @@ -266,20 +266,6 @@ static int find_code_page(request_rec *r) if (!strncmp(r->filename, "passthrough:", 12)) return DECLINED; if (!strncmp(r->filename, "forbidden:", 10)) return DECLINED; - /* If this is a subrequest, bail out. We don't want to be setting up - * translation just because something like mod_autoindex wants to find the - * mime type for directory objects. - * (I won't swear that there aren't cases where we need to process - * subrequests :) ). - */ - if (r->main) { - if (debug) { - ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, r->server, - "skipping subrequest"); - } - return DECLINED; - } - mime_type = r->content_type ? r->content_type : ap_default_type(r); /* If mime type isn't text or message, bail out. -- 2.40.0