Commit 68f3c95e authored by Bill Stoddard's avatar Bill Stoddard
Browse files

Performance: Move the is_included strcmp to after the check to see if the

request is to be served by the cgi handler.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91876 13f79535-47bb-0310-9956-ffa450edef68
parent 4c598c54
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -542,7 +542,7 @@ static int cgi_handler(request_rec *r)
    apr_bucket_brigade *bb;
    apr_bucket *b;
    char argsbuffer[HUGE_STRING_LEN];
    int is_included = !strcmp(r->protocol, "INCLUDED");
    int is_included;
    apr_pool_t *p;
    cgi_server_conf *conf;
    apr_status_t rv;
@@ -551,6 +551,8 @@ static int cgi_handler(request_rec *r)
    if(strcmp(r->handler,CGI_MAGIC_TYPE) && strcmp(r->handler,"cgi-script"))
	return DECLINED;

    is_included = !strcmp(r->protocol, "INCLUDED");

    p = r->main ? r->main->pool : r->pool;

    if (r->method_number == M_OPTIONS) {