From ce39062dd260960e927be6344a71eca4b0bef314 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Wed, 1 Apr 2009 17:35:17 +0000 Subject: 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 --- tests/fcgi-responder.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests/fcgi-responder.c') 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; -- cgit v1.2.1