Received: by taz.hyperreal.com (8.6.12/8.6.5) id VAA08999; Wed, 12 Jun 1996 21:02:34 -0700 Received: from localhost by taz.hyperreal.com (8.6.12/8.6.5) with SMTP id VAA08983; Wed, 12 Jun 1996 21:02:31 -0700 Date: Wed, 12 Jun 1996 21:02:30 -0700 (PDT) From: Brian Behlendorf To: new-httpd@hyperreal.com Subject: mod_dir POST fix Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-new-httpd@apache.org Precedence: bulk Reply-To: new-httpd@hyperreal.com 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