Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 31706 invoked from network); 18 Oct 2005 21:28:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Oct 2005 21:28:34 -0000 Received: (qmail 28907 invoked by uid 500); 18 Oct 2005 21:28:25 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 28819 invoked by uid 500); 18 Oct 2005 21:28:24 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 28787 invoked by uid 99); 18 Oct 2005 21:28:24 -0000 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 18 Oct 2005 14:28:24 -0700 Received: (qmail 31589 invoked by uid 65534); 18 Oct 2005 21:28:04 -0000 Message-ID: <20051018212804.31588.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r326253 - in /httpd/httpd/branches/2.0.x: CHANGES modules/generators/mod_cgi.c modules/generators/mod_cgid.c Date: Tue, 18 Oct 2005 21:28:03 -0000 To: cvs@httpd.apache.org From: fielding@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: fielding Date: Tue Oct 18 14:27:57 2005 New Revision: 326253 URL: http://svn.apache.org/viewcvs?rev=326253&view=rev Log: 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. Modified: httpd/httpd/branches/2.0.x/CHANGES httpd/httpd/branches/2.0.x/modules/generators/mod_cgi.c httpd/httpd/branches/2.0.x/modules/generators/mod_cgid.c Modified: httpd/httpd/branches/2.0.x/CHANGES URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.0.x/CHANGES?rev=326253&r1=326252&r2=326253&view=diff ============================================================================== --- httpd/httpd/branches/2.0.x/CHANGES [utf-8] (original) +++ httpd/httpd/branches/2.0.x/CHANGES [utf-8] Tue Oct 18 14:27:57 2005 @@ -1,6 +1,10 @@ -*- coding: utf-8 -*- 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 + *) Added new module mod_version, which provides version dependent configuration containers. [André Malo] Modified: httpd/httpd/branches/2.0.x/modules/generators/mod_cgi.c URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.0.x/modules/generators/mod_cgi.c?rev=326253&r1=326252&r2=326253&view=diff ============================================================================== --- httpd/httpd/branches/2.0.x/modules/generators/mod_cgi.c (original) +++ httpd/httpd/branches/2.0.x/modules/generators/mod_cgi.c Tue Oct 18 14:27:57 2005 @@ -746,13 +746,6 @@ 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_filename_of_pathname(r->filename); nph = !(strncmp(argv0, "nph-", 4)); conf = ap_get_module_config(r->server->module_config, &cgi_module); Modified: httpd/httpd/branches/2.0.x/modules/generators/mod_cgid.c URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.0.x/modules/generators/mod_cgid.c?rev=326253&r1=326252&r2=326253&view=diff ============================================================================== --- httpd/httpd/branches/2.0.x/modules/generators/mod_cgid.c (original) +++ httpd/httpd/branches/2.0.x/modules/generators/mod_cgid.c Tue Oct 18 14:27:57 2005 @@ -1261,13 +1261,6 @@ 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");