httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject cvs commit: httpd-2.0/modules/mappers mod_rewrite.c
Date Wed, 20 Aug 2003 01:11:11 GMT
nd          2003/08/19 18:11:11

  Modified:    modules/mappers mod_rewrite.c
  Log:
  style
  
  Revision  Changes    Path
  1.233     +5 -5      httpd-2.0/modules/mappers/mod_rewrite.c
  
  Index: mod_rewrite.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/mappers/mod_rewrite.c,v
  retrieving revision 1.232
  retrieving revision 1.233
  diff -u -r1.232 -r1.233
  --- mod_rewrite.c	20 Aug 2003 00:35:48 -0000	1.232
  +++ mod_rewrite.c	20 Aug 2003 01:11:11 -0000	1.233
  @@ -4525,17 +4525,17 @@
   {
       const char *t;
   
  -    /* now check if we have to force a MIME-type */
       t = apr_table_get(r->notes, REWRITE_FORCED_MIMETYPE_NOTEVAR);
  -    if (t == NULL) {
  -        return DECLINED;
  -    }
  -    else {
  +
  +    if (t && *t) {
           rewritelog((r, 1, NULL, "force filename %s to have MIME-type '%s'",
                       r->filename, t));
  +
           ap_set_content_type(r, t);
           return OK;
       }
  +
  +    return DECLINED;
   }
   
   /* check whether redirect limit is reached */
  
  
  

Mime
View raw message