]> granicus.if.org Git - apache/commitdiff
Remove CGI block on OPTIONS method so that scripts can
authorRoy T. Fielding <fielding@apache.org>
Tue, 18 Oct 2005 21:29:43 +0000 (21:29 +0000)
committerRoy T. Fielding <fielding@apache.org>
Tue, 18 Oct 2005 21:29:43 +0000 (21:29 +0000)
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

CHANGES
modules/generators/mod_cgi.c
modules/generators/mod_cgid.c

diff --git a/CHANGES b/CHANGES
index 817fafbbfbc7673c376630aee159d4fba3130b3f..d966c343b7d43803faccf3861ca7b27b5e889e80 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -896,6 +896,12 @@ Changes with Apache 2.1.1
   [Apache 2.1.0-dev includes those bug fixes and changes with the
    Apache 2.0.xx tree as documented, and except as noted, below.]
 
+Changes with Apache 2.0.56
+
+  *) mod_cgi(d): Remove block on OPTIONS method so that scripts can
+     respond to OPTIONS directly rather than via server default.
+     [Roy Fielding] PR 15242
+
 Changes with Apache 2.0.55
 
   *) SECURITY: CAN-2005-2088 (cve.mitre.org)
index 463f076359578ed0029352234079925247c8ed20..c8dc170ebc157b7a9dd6f757b8e305b7457ff659 100644 (file)
@@ -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);
index ec91b91e7c97753b5f0d93c4e5ee6664c16e5498..d16fbd7f7ecb6059867b8ffb71da639c37a48e73 100644 (file)
@@ -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");