You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Brian Behlendorf <br...@hyperreal.com> on 1996/06/13 06:02:30 UTC

mod_dir POST fix

Comments, please.... this is to allow POST to http://host/path/index.cgi
for requests to http://host/path/.

	Brian

Index: mod_dir.c
===================================================================
RCS file: /export/home/cvs/apache/src/mod_dir.c,v
retrieving revision 1.8
diff -C3 -r1.8 mod_dir.c
*** mod_dir.c	1996/04/12 17:50:01	1.8
--- mod_dir.c	1996/06/13 03:59:53
***************
*** 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 ----
***************
*** 815,820 ****
--- 813,820 ----
  
      /* OK, nothing easy.  Trot out the heavy artillery... */
  
+     if (r->method_number != M_GET) return NOT_IMPLEMENTED;
+     
      if (allow_opts & OPT_INDEXES) 
          return index_directory (r, d);
      else