summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorRoy T. Fielding <fielding@apache.org>2005-10-18 23:29:43 +0200
committerRoy T. Fielding <fielding@apache.org>2005-10-18 23:29:43 +0200
commit16ef40e5ff4796415280aac1ee2bbba43a5663db (patch)
tree0b1b37cee79bd13ee41c196465d23d8b956f741c /modules
parentDocument Roy's recent discovery that plain Alias/Redirect only (diff)
downloadapache2-16ef40e5ff4796415280aac1ee2bbba43a5663db.tar.xz
apache2-16ef40e5ff4796415280aac1ee2bbba43a5663db.zip
Remove CGI block on OPTIONS method so that scripts can
respond to OPTIONS directly rather than via server default. PR: 15242 Reviewed-by: Paul Querna, Andre Malo, William A. Rowe, Jr. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@326255 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-rw-r--r--modules/generators/mod_cgi.c7
-rw-r--r--modules/generators/mod_cgid.c7
2 files changed, 0 insertions, 14 deletions
diff --git a/modules/generators/mod_cgi.c b/modules/generators/mod_cgi.c
index 463f076359..c8dc170ebc 100644
--- a/modules/generators/mod_cgi.c
+++ b/modules/generators/mod_cgi.c
@@ -756,13 +756,6 @@ static int cgi_handler(request_rec *r)
p = r->main ? r->main->pool : r->pool;
- if (r->method_number == M_OPTIONS) {
- /* 99 out of 100 CGI scripts, this is all they support */
- r->allowed |= (AP_METHOD_BIT << M_GET);
- r->allowed |= (AP_METHOD_BIT << M_POST);
- return DECLINED;
- }
-
argv0 = apr_filepath_name_get(r->filename);
nph = !(strncmp(argv0, "nph-", 4));
conf = ap_get_module_config(r->server->module_config, &cgi_module);
diff --git a/modules/generators/mod_cgid.c b/modules/generators/mod_cgid.c
index ec91b91e7c..d16fbd7f7e 100644
--- a/modules/generators/mod_cgid.c
+++ b/modules/generators/mod_cgid.c
@@ -1290,13 +1290,6 @@ static int cgid_handler(request_rec *r)
if (strcmp(r->handler,CGI_MAGIC_TYPE) && strcmp(r->handler,"cgi-script"))
return DECLINED;
- if (r->method_number == M_OPTIONS) {
- /* 99 out of 100 cgid scripts, this is all they support */
- r->allowed |= (AP_METHOD_BIT << M_GET);
- r->allowed |= (AP_METHOD_BIT << M_POST);
- return DECLINED;
- }
-
conf = ap_get_module_config(r->server->module_config, &cgid_module);
is_included = !strcmp(r->protocol, "INCLUDED");