You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by Brian Behlendorf <br...@hyperreal.com> on 1996/06/14 02:03:45 UTC
cvs commit: apache/src mod_dir.c
brian 96/06/13 17:03:44
Modified: src mod_dir.c
Log:
Submitted by: Brian Behlendorf
Moved method check to past section where detection of DirectoryIndex
is made, to allow for the possibility of POST to index.cgi.
Revision Changes Path
1.9 +2 -2 apache/src/mod_dir.c
Index: mod_dir.c
===================================================================
RCS file: /export/home/cvs/apache/src/mod_dir.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C3 -r1.8 -r1.9
*** mod_dir.c 1996/04/12 17:50:01 1.8
--- mod_dir.c 1996/06/14 00:03:42 1.9
***************
*** 769,776 ****
char *names_ptr = d->index_names ? d->index_names : DEFAULT_INDEX;
int allow_opts = allow_options (r);
- if (r->method_number != M_GET) return NOT_IMPLEMENTED;
-
if (r->uri[0] == '\0' || r->uri[strlen(r->uri)-1] != '/') {
char* ifile;
if (r->args != NULL)
--- 769,774 ----
***************
*** 813,818 ****
--- 811,818 ----
destroy_sub_req (rr);
}
+ if (r->method_number != M_GET) return NOT_IMPLEMENTED;
+
/* OK, nothing easy. Trot out the heavy artillery... */
if (allow_opts & OPT_INDEXES)