diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-10-16 12:44:46 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-10-16 12:44:46 +0300 |
commit | e2a49611e067feff63f51b2f4594f0bea01367f4 (patch) | |
tree | 493bfe77e1f5db1214525c0386dc6917129173c2 | |
parent | ed765c47539326c8963fc5b77f9b910600764489 (diff) | |
download | libmicrohttpd-e2a49611e067feff63f51b2f4594f0bea01367f4.tar.gz libmicrohttpd-e2a49611e067feff63f51b2f4594f0bea01367f4.zip |
MHD_del_response_header(): documented new behaviors
-rw-r--r-- | src/include/microhttpd.h | 5 | ||||
-rw-r--r-- | src/microhttpd/response.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 05ee42a0..ded6577f 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -3752,6 +3752,11 @@ MHD_add_response_footer (struct MHD_Response *response, | |||
3752 | /** | 3752 | /** |
3753 | * Delete a header (or footer) line from the response. | 3753 | * Delete a header (or footer) line from the response. |
3754 | * | 3754 | * |
3755 | * For "Connection" headers this function remove all tokens from existing | ||
3756 | * value. Successful result means that at least one token has been removed. | ||
3757 | * If all tokens are removed from "Connection" header, the empty "Connection" | ||
3758 | * header removed. | ||
3759 | * | ||
3755 | * @param response response to remove a header from | 3760 | * @param response response to remove a header from |
3756 | * @param header the header to delete | 3761 | * @param header the header to delete |
3757 | * @param content value to delete | 3762 | * @param content value to delete |
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c index 3167992f..7df2a0c6 100644 --- a/src/microhttpd/response.c +++ b/src/microhttpd/response.c | |||
@@ -580,6 +580,11 @@ MHD_add_response_footer (struct MHD_Response *response, | |||
580 | /** | 580 | /** |
581 | * Delete a header (or footer) line from the response. | 581 | * Delete a header (or footer) line from the response. |
582 | * | 582 | * |
583 | * For "Connection" headers this function remove all tokens from existing | ||
584 | * value. Successful result means that at least one token has been removed. | ||
585 | * If all tokens are removed from "Connection" header, the empty "Connection" | ||
586 | * header removed. | ||
587 | * | ||
583 | * @param response response to remove a header from | 588 | * @param response response to remove a header from |
584 | * @param header the header to delete | 589 | * @param header the header to delete |
585 | * @param content value to delete | 590 | * @param content value to delete |