httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r233369 - /httpd/httpd/trunk/modules/mappers/mod_dir.c
Date Thu, 18 Aug 2005 20:10:34 GMT
Author: pquerna
Date: Thu Aug 18 13:10:26 2005
New Revision: 233369

URL: http://svn.apache.org/viewcvs?rev=233369&view=rev
Log:
Do not check the value of r->handler.

This allows the use of SetHandler for an entire directory, and since we already check via
the stat structure if this is a directory, there is no reason for this extra check, which
causes a regression since 1.3.

PR: 25435

Modified:
    httpd/httpd/trunk/modules/mappers/mod_dir.c

Modified: httpd/httpd/trunk/modules/mappers/mod_dir.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/mappers/mod_dir.c?rev=233369&r1=233368&r2=233369&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/mappers/mod_dir.c (original)
+++ httpd/httpd/trunk/modules/mappers/mod_dir.c Thu Aug 18 13:10:26 2005
@@ -151,10 +151,6 @@
         return HTTP_MOVED_PERMANENTLY;
     }
 
-    if (strcmp(r->handler, DIR_MAGIC_TYPE)) {
-        return DECLINED;
-    }
-
     if (d->index_names) {
         names_ptr = (char **)d->index_names->elts;
         num_names = d->index_names->nelts;



Mime
View raw message