httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject [PATCH] PR#1241: mod_dir/autoindex should DECLINE PUT
Date Tue, 21 Oct 1997 06:57:17 GMT
This is consistent with other method changes we've been making.  In fact
there's probably more changes like this that could be made.  The core will
eventually reject PUTs on directories if there's no other handler. 

Dean

Index: modules/standard/mod_autoindex.c
===================================================================
RCS file: /export/home/cvs/apachen/src/modules/standard/mod_autoindex.c,v
retrieving revision 1.51
diff -u -r1.51 mod_autoindex.c
--- mod_autoindex.c	1997/10/16 18:55:51	1.51
+++ mod_autoindex.c	1997/10/21 06:54:58
@@ -1104,7 +1104,7 @@
     int allow_opts = allow_options(r);
 
     if (r->method_number != M_GET)
-	return NOT_IMPLEMENTED;
+	return DECLINED;
 
     /* OK, nothing easy.  Trot out the heavy artillery... */
 
Index: modules/standard/mod_dir.c
===================================================================
RCS file: /export/home/cvs/apachen/src/modules/standard/mod_dir.c,v
retrieving revision 1.41
diff -u -r1.41 mod_dir.c
--- mod_dir.c	1997/09/18 18:40:51	1.41
+++ mod_dir.c	1997/10/21 06:54:58
@@ -182,7 +182,7 @@
         return error_notfound;
 
     if (r->method_number != M_GET)
-        return NOT_IMPLEMENTED;
+        return DECLINED;
 
     /* nothing for us to do, pass on through */
 


Mime
View raw message