X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fcallcgi.c;h=42ac389e027ce417b5742ba7a90cf390b1afdf7c;hb=147c2b51fe166f5734ebded4729ca831fc19123e;hp=9e7c21b4c7e76851991e31624312c3a84da65713;hpb=d245c327ec854a63b6c6a6c90bd26c88d1a7ddaf;p=ashd.git diff --git a/src/callcgi.c b/src/callcgi.c index 9e7c21b..42ac389 100644 --- a/src/callcgi.c +++ b/src/callcgi.c @@ -93,7 +93,7 @@ static void forkchild(int inpath, char *prog, char *file, char *method, char *ur putenv(sprintf2("SERVER_SOFTWARE=ashd/%s", VERSION)); putenv("GATEWAY_INTERFACE=CGI/1.1"); if(getenv("HTTP_VERSION")) - putenv(sprintf2("SERVER_PROTOCOL=HTTP/%s", getenv("HTTP_VERSION"))); + putenv(sprintf2("SERVER_PROTOCOL=%s", getenv("HTTP_VERSION"))); putenv(sprintf2("REQUEST_METHOD=%s", method)); putenv(sprintf2("PATH_INFO=%s", rest)); putenv(sprintf2("SCRIPT_NAME=%s", url));