]> granicus.if.org Git - apache/commitdiff
mod_charset_lite no longer ignores subrequests. (Some logic in
authorJeff Trawick <trawick@apache.org>
Mon, 25 Sep 2000 11:31:14 +0000 (11:31 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 25 Sep 2000 11:31:14 +0000 (11:31 +0000)
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

index 259852d8829a463f56bddf1cdd31b42c65b74c9d..0f93b3a27935f43efe911139ebcaad1da1bfee1d 100644 (file)
@@ -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.