1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

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
This commit is contained in:
Bill Stoddard
2001-11-12 16:32:33 +00:00
parent 7853b24389
commit e79f552386

View File

@@ -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) {