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, 16 Jul 2003 19:01:06 GMT
nd          2003/07/16 12:01:06

  Modified:    modules/mappers mod_rewrite.c
  Log:
  add some linebreaks and reorder case alphabetically for better
  readability. No code changes.
  
  Revision  Changes    Path
  1.164     +18 -7     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.163
  retrieving revision 1.164
  diff -u -r1.163 -r1.164
  --- mod_rewrite.c	16 Jul 2003 18:23:37 -0000	1.163
  +++ mod_rewrite.c	16 Jul 2003 19:01:05 -0000	1.164
  @@ -880,6 +880,7 @@
               }
           }
           break;
  +
       case 'e':
       case 'E':
           if (!*key || !strcasecmp(key, "nv")) {             /* env */
  @@ -895,24 +896,28 @@
               }
           }
           break;
  +
       case 'f':
       case 'F':
           if (!*key || !strcasecmp(key, "orbidden")) {       /* forbidden */
               cfg->flags |= RULEFLAG_FORBIDDEN;
           }
           break;
  +
       case 'g':
       case 'G':
           if (!*key || !strcasecmp(key, "one")) {            /* gone */
               cfg->flags |= RULEFLAG_GONE;
           }
           break;
  +
       case 'l':
       case 'L':
           if (!*key || !strcasecmp(key, "ast")) {            /* last */
               cfg->flags |= RULEFLAG_LASTRULE;
           }
           break;
  +
       case 'n':
       case 'N':
           if (((*key == 'E' || *key == 'e') && !key[1])
  @@ -931,6 +936,7 @@
               cfg->flags |= RULEFLAG_NOCASE;
           }
           break;
  +
       case 'p':
       case 'P':
           if (!*key || !strcasecmp(key, "roxy")) {           /* proxy */
  @@ -941,6 +947,7 @@
               cfg->flags |= RULEFLAG_PASSTHROUGH;
           }
           break;
  +
       case 'q':
       case 'Q':
           if (   !strcasecmp(key, "QSA")
  @@ -948,6 +955,7 @@
               cfg->flags |= RULEFLAG_QSAPPEND;
           }
           break;
  +
       case 'r':
       case 'R':
           if (!*key || !strcasecmp(key, "edirect")) {        /* redirect */
  @@ -973,19 +981,22 @@
               }
           }
           break;
  -    case 't':
  -    case 'T':
  -        if (!*key || !strcasecmp(key, "ype")) {             /* type */
  -            cfg->forced_mimetype = apr_pstrdup(p, val);
  -            ap_str_tolower(cfg->forced_mimetype);
  -        }
  -        break;
  +
       case 's':
       case 'S':
           if (!*key || !strcasecmp(key, "kip")) {            /* skip */
               cfg->skip = atoi(val);
           }
           break;
  +
  +    case 't':
  +    case 'T':
  +        if (!*key || !strcasecmp(key, "ype")) {            /* type */
  +            cfg->forced_mimetype = apr_pstrdup(p, val);
  +            ap_str_tolower(cfg->forced_mimetype);
  +        }
  +        break;
  +
       default:
           return apr_pstrcat(p, "RewriteRule: unknown flag '", key, "'", NULL);
       }
  
  
  

Mime
View raw message