httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Behlendorf <br...@hyperreal.com>
Subject mod_dir POST fix
Date Thu, 13 Jun 1996 04:02:30 GMT

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



Mime
View raw message