Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d245c32
)
Fixed a bug in callcgi.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Fri, 27 Aug 2010 00:54:11 +0000
(
02:54
+0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Fri, 27 Aug 2010 00:54:11 +0000
(
02:54
+0200)
src/callcgi.c
patch
|
blob
|
blame
|
history
diff --git
a/src/callcgi.c
b/src/callcgi.c
index
9e7c21b
..
42ac389
100644
(file)
--- 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));