summaryrefslogtreecommitdiff
path: root/tests/fcgi-responder.c
diff options
context:
space:
mode:
authorChristoph Kreutzer <ckreutzer@jessie.zoe.ck-ws.net>2016-08-12 09:58:48 +0200
committerGlenn Strauss <gstrauss@gluelogic.com>2016-09-19 20:02:02 -0400
commit7ef569b20421827e3a153431aaecbf1079259c79 (patch)
treed209a4ecacf5eb958ef3490679fce0095a23d1e6 /tests/fcgi-responder.c
parent2dcfe1733ec729af0fa3477e91617ce60bc5ecad (diff)
downloadlighttpd1.4-7ef569b20421827e3a153431aaecbf1079259c79.tar.gz
lighttpd1.4-7ef569b20421827e3a153431aaecbf1079259c79.zip
[tests] test coverage for issues (#321, #322)
FastCGI Authorizer support with FastCGI Responders x-ref: "mod_fastcgi authorizers cannot protect fastcgi responders" http://redmine.lighttpd.net/issues/321 x-ref: "FastCGI Authorizer support for Variable-name variable passing" http://redmine.lighttpd.net/issues/322
Diffstat (limited to 'tests/fcgi-responder.c')
-rw-r--r--tests/fcgi-responder.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/fcgi-responder.c b/tests/fcgi-responder.c
index de04d0eb..8a86a73d 100644
--- a/tests/fcgi-responder.c
+++ b/tests/fcgi-responder.c
@@ -44,6 +44,9 @@ int main (void) {
printf("%s", getenv("PATH_INFO"));
} else if (0 == strcmp(p, "script_name")) {
printf("%s", getenv("SCRIPT_NAME"));
+ } else if (0 == strcmp(p, "var")) {
+ p = getenv("X_LIGHTTPD_FCGI_AUTH");
+ printf("%s", p ? p : "(no value)");
} else {
printf("test123");
}