You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rp...@apache.org on 2009/06/01 16:08:20 UTC
svn commit: r780655 - /httpd/httpd/trunk/modules/mappers/mod_alias.c
Author: rpluem
Date: Mon Jun 1 14:08:19 2009
New Revision: 780655
URL: http://svn.apache.org/viewvc?rev=780655&view=rev
Log:
* Some custom defined response codes also do not require 3 arguments (all that
are not redirects).
Modified:
httpd/httpd/trunk/modules/mappers/mod_alias.c
Modified: httpd/httpd/trunk/modules/mappers/mod_alias.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/mappers/mod_alias.c?rev=780655&r1=780654&r2=780655&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/mappers/mod_alias.c (original)
+++ httpd/httpd/trunk/modules/mappers/mod_alias.c Mon Jun 1 14:08:19 2009
@@ -180,9 +180,10 @@
const char *f = arg2;
const char *url = arg3;
- if (!arg3 && !strcasecmp(arg1, "gone")) {
+ if (!arg3 && !strcasecmp(arg1, "gone"))
status = HTTP_GONE;
- }
+ else if (apr_isdigit(*arg1))
+ status = atoi(arg1);
else if (arg3) {
if (!strcasecmp(arg1, "permanent"))
status = HTTP_MOVED_PERMANENTLY;
@@ -190,8 +191,6 @@
status = HTTP_MOVED_TEMPORARILY;
else if (!strcasecmp(arg1, "seeother"))
status = HTTP_SEE_OTHER;
- else if (apr_isdigit(*arg1))
- status = atoi(arg1);
else {
return "Redirect: invalid first argument (of three)";
}