From b480efe672af518e402dcc597264f14fa4a7b245 Mon Sep 17 00:00:00 2001 From: "roberto@mrspurr" Date: Fri, 9 Sep 2011 08:42:31 +0200 Subject: [PATCH] fixed script_name handling --- protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol.c b/protocol.c index d8fa2192..bd8deccc 100644 --- a/protocol.c +++ b/protocol.c @@ -760,11 +760,11 @@ next: uwsgi_log( "max vec size reached. skip this var.\n"); return -1; } - wsgi_req->var_cnt++; wsgi_req->hvec[wsgi_req->var_cnt].iov_base = "SCRIPT_NAME"; wsgi_req->hvec[wsgi_req->var_cnt].iov_len = 11; wsgi_req->var_cnt++; script_name = wsgi_req->var_cnt; + wsgi_req->var_cnt++; } for(i=0;i