Commit 3bd5b9eb authored by Roy T. Fielding's avatar Roy T. Fielding
Browse files

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/branches/1.3.x@326256 13f79535-47bb-0310-9956-ffa450edef68
parent 1f4c80c4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
Changes with Apache 1.3.35

  *) mod_cgi: 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 1.3.34

  *) hsregex: fix potential core dumping on 64 bit machines, such as
+0 −7
Original line number Diff line number Diff line
@@ -337,13 +337,6 @@ static int cgi_handler(request_rec *r)

    struct cgi_child_stuff cld;

    if (r->method_number == M_OPTIONS) {
	/* 99 out of 100 CGI scripts, this is all they support */
	r->allowed |= (1 << M_GET);
	r->allowed |= (1 << M_POST);
	return DECLINED;
    }

    if ((argv0 = strrchr(r->filename, '/')) != NULL)
	argv0++;
    else