summaryrefslogtreecommitdiff
path: root/tests/fcgi-responder.c
diff options
context:
space:
mode:
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 721c2ce..81f8ca8 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;