summaryrefslogtreecommitdiff
path: root/tests/fcgi-responder.c
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2009-04-01 17:35:17 +0000
committerStefan Bühler <stbuehler@web.de>2009-04-01 17:35:17 +0000
commitce39062dd260960e927be6344a71eca4b0bef314 (patch)
tree716365970dc45a99b04792a985a919504e5e9b6a /tests/fcgi-responder.c
parent61332595cb69bd8315f610920fe3879ebc9fe421 (diff)
downloadlighttpd-git-ce39062dd260960e927be6344a71eca4b0bef314.tar.gz
Fix workaround for incorrect path info/scriptname if fastcgi prefix is "/" (fixes #729)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2421 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests/fcgi-responder.c')
-rw-r--r--tests/fcgi-responder.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/fcgi-responder.c b/tests/fcgi-responder.c
index 721c2ce2..81f8ca81 100644
--- a/tests/fcgi-responder.c
+++ b/tests/fcgi-responder.c
@@ -40,7 +40,13 @@ int main () {
printf("Status: 500 Internal Foo\r\n\r\n");
}
- printf("test123");
+ if (0 == strcmp(p, "path_info")) {
+ printf("%s", getenv("PATH_INFO"));
+ } else if (0 == strcmp(p, "script_name")) {
+ printf("%s", getenv("SCRIPT_NAME"));
+ } else {
+ printf("test123");
+ }
}
return 0;