diff options
author | Christoph Kreutzer <ckreutzer@jessie.zoe.ck-ws.net> | 2016-08-12 09:58:48 +0200 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2016-09-19 20:02:02 -0400 |
commit | 7ef569b20421827e3a153431aaecbf1079259c79 (patch) | |
tree | d209a4ecacf5eb958ef3490679fce0095a23d1e6 /tests/fcgi-responder.c | |
parent | 2dcfe1733ec729af0fa3477e91617ce60bc5ecad (diff) | |
download | lighttpd-git-7ef569b20421827e3a153431aaecbf1079259c79.tar.gz |
[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.c | 3 |
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"); } |