httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@locus.apache.org
Subject cvs commit: apache-2.0/src/modules/experimental mod_charset_lite.c
Date Mon, 25 Sep 2000 11:31:16 GMT
trawick     00/09/25 04:31:14

  Modified:    src      CHANGES
               src/modules/experimental mod_charset_lite.c
  Log:
  mod_charset_lite no longer ignores subrequests.  (Some logic in
  mod_charset_lite to avoid problems with subrequests is forthcoming.)
  
  Revision  Changes    Path
  1.238     +4 -0      apache-2.0/src/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/CHANGES,v
  retrieving revision 1.237
  retrieving revision 1.238
  diff -u -r1.237 -r1.238
  --- CHANGES	2000/09/23 18:39:28	1.237
  +++ CHANGES	2000/09/25 11:31:09	1.238
  @@ -1,5 +1,9 @@
   Changes with Apache 2.0a7
   
  +  *) Charset translation: mod_charset_lite handles output content 
  +     translation in a filter.  mod_charset_lite no longer ignores 
  +     subrequests.  [Jeff Trawick]
  +
     *) Move the addition of the CORE filter to the post_read_request
        hook in http_core.c.  This removes the need to add the filter in
        multiple places and allows for an SSL module to be added much
  
  
  
  1.19      +0 -14     apache-2.0/src/modules/experimental/mod_charset_lite.c
  
  Index: mod_charset_lite.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/modules/experimental/mod_charset_lite.c,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- mod_charset_lite.c	2000/09/19 20:56:08	1.18
  +++ mod_charset_lite.c	2000/09/25 11:31:14	1.19
  @@ -266,20 +266,6 @@
       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.
  
  
  

Mime
View raw message