mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
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
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user