]> granicus.if.org Git - apache/commitdiff
Do not check the value of r->handler.
authorPaul Querna <pquerna@apache.org>
Thu, 18 Aug 2005 20:10:26 +0000 (20:10 +0000)
committerPaul Querna <pquerna@apache.org>
Thu, 18 Aug 2005 20:10:26 +0000 (20:10 +0000)
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

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@233369 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_dir.c

index b0bc39a7dd0f654c90adf8bed2f7218fb8e4a2ad..0ad60aae20cea6d218a6a5cb80a80fbe8b958662 100644 (file)
@@ -151,10 +151,6 @@ static int fixup_dir(request_rec *r)
         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;