/[Apache-SVN]/httpd/httpd/trunk/modules/mappers/mod_alias.c
ViewVC logotype

Diff of /httpd/httpd/trunk/modules/mappers/mod_alias.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 778942, Wed May 27 00:58:41 2009 UTC revision 780648, Mon Jun 1 13:37:59 2009 UTC
# Line 180  static const char *add_redirect_internal Line 180  static const char *add_redirect_internal
180      const char *f = arg2;      const char *f = arg2;
181      const char *url = arg3;      const char *url = arg3;
182    
183      if (arg3 != NULL) {      if (!arg3 && !strcasecmp(arg1, "gone")) {
         if (!strcasecmp(arg1, "gone"))  
184              status = HTTP_GONE;              status = HTTP_GONE;
185          else if (!strcasecmp(arg1, "permanent"))      }
186        else if (arg3) {
187            if (!strcasecmp(arg1, "permanent"))
188              status = HTTP_MOVED_PERMANENTLY;              status = HTTP_MOVED_PERMANENTLY;
189          else if (!strcasecmp(arg1, "temp"))          else if (!strcasecmp(arg1, "temp"))
190              status = HTTP_MOVED_TEMPORARILY;              status = HTTP_MOVED_TEMPORARILY;

Legend:
Removed from v.778942  
changed lines
  Added in v.780648

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2