diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-04-16 14:20:24 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-04-17 15:24:37 +0300 |
commit | 3ebb98295631a662bdb66b9148f4f43000dc3671 (patch) | |
tree | 549bd9390a8332518a3d7392666225a87a783409 /src/microhttpd/digestauth.c | |
parent | e76fc7f8aaf4907aa6ca0200e9682830f94a9ac2 (diff) | |
download | libmicrohttpd-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.c | 4 |
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 | |||
780 | check_argument_match (struct MHD_Connection *connection, | 780 | check_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; |