aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/digestauth.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-04-16 14:20:24 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-04-17 15:24:37 +0300
commit3ebb98295631a662bdb66b9148f4f43000dc3671 (patch)
tree549bd9390a8332518a3d7392666225a87a783409 /src/microhttpd/digestauth.c
parente76fc7f8aaf4907aa6ca0200e9682830f94a9ac2 (diff)
downloadlibmicrohttpd-3ebb98295631a662bdb66b9148f4f43000dc3671.tar.gz
libmicrohttpd-3ebb98295631a662bdb66b9148f4f43000dc3671.zip
Refactoring: different types for response and request headers
Request headers are always read-only (const char *), while response headers are modifiable. Should help with catching errors in code.
Diffstat (limited to 'src/microhttpd/digestauth.c')
-rw-r--r--src/microhttpd/digestauth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
index a3244188..8526ae40 100644
--- a/src/microhttpd/digestauth.c
+++ b/src/microhttpd/digestauth.c
@@ -737,7 +737,7 @@ test_header (struct MHD_Connection *connection,
737 size_t value_size, 737 size_t value_size,
738 enum MHD_ValueKind kind) 738 enum MHD_ValueKind kind)
739{ 739{
740 struct MHD_HTTP_Header *pos; 740 struct MHD_HTTP_Req_Header *pos;
741 741
742 for (pos = connection->headers_received; NULL != pos; pos = pos->next) 742 for (pos = connection->headers_received; NULL != pos; pos = pos->next)
743 { 743 {
@@ -780,7 +780,7 @@ static enum MHD_Result
780check_argument_match (struct MHD_Connection *connection, 780check_argument_match (struct MHD_Connection *connection,
781 const char *args) 781 const char *args)
782{ 782{
783 struct MHD_HTTP_Header *pos; 783 struct MHD_HTTP_Req_Header *pos;
784 char *argb; 784 char *argb;
785 unsigned int num_headers; 785 unsigned int num_headers;
786 enum MHD_Result ret; 786 enum MHD_Result ret;