libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 0375040c9eae3662a14951391338f4fa4c824b19
parent 6818a3796683108e4a533d7e7c0606c54f10d37d
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon,  6 Sep 2010 12:46:14 +0000

check that username matches

Diffstat:
Msrc/testcurl/daemontest_digestauth.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/testcurl/daemontest_digestauth.c b/src/testcurl/daemontest_digestauth.c @@ -78,7 +78,8 @@ ahc_echo (void *cls, int ret; username = MHD_digest_auth_get_username(connection); - if (username == NULL) + if ( (username == NULL) || + (0 != strcmp (username, "testuser")) ) { response = MHD_create_response_from_data(strlen (DENIED), DENIED,