aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-01-18 15:56:09 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-01-18 15:56:09 +0300
commit6ed5b52d3e41a706904e05277afad92087a54784 (patch)
tree522e20fc7f08eaee3363ca955d695515ad0b81af /doc
parent84a92e8a7130c351b200dedc41b317e8a75ffcac (diff)
downloadlibmicrohttpd-6ed5b52d3e41a706904e05277afad92087a54784.tar.gz
libmicrohttpd-6ed5b52d3e41a706904e05277afad92087a54784.zip
Fixed early response with digest auth in tests, examples, and documentation
Diffstat (limited to 'doc')
-rw-r--r--doc/libmicrohttpd.texi8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/libmicrohttpd.texi b/doc/libmicrohttpd.texi
index a14c28d3..46eed3b0 100644
--- a/doc/libmicrohttpd.texi
+++ b/doc/libmicrohttpd.texi
@@ -3302,6 +3302,14 @@ ahc_echo (void *cls,
3302 const char *password = "testpass"; 3302 const char *password = "testpass";
3303 const char *realm = "test@@example.com"; 3303 const char *realm = "test@@example.com";
3304 int ret; 3304 int ret;
3305 static int already_called_marker;
3306
3307 if (&already_called_marker != *req_cls)
3308 @{ /* Called for the first time, request not fully read yet */
3309 *req_cls = &already_called_marker;
3310 /* Wait for complete request */
3311 return MHD_YES;
3312 @}
3305 3313
3306 username = MHD_digest_auth_get_username (connection); 3314 username = MHD_digest_auth_get_username (connection);
3307 if (username == NULL) 3315 if (username == NULL)