diff options
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r-- | src/microhttpd/connection.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 5f4ae11f..a73c378f 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -1844,7 +1844,7 @@ buffer_append (char *buf, | |||
1844 | * @param buf_size the size of the @a buf | 1844 | * @param buf_size the size of the @a buf |
1845 | * @param response the response | 1845 | * @param response the response |
1846 | * @param kind the kind of objects (headers or footers) | 1846 | * @param kind the kind of objects (headers or footers) |
1847 | * @param filter_transf_enc skip "Transfer-Encoding" header | 1847 | * @param filter_transf_enc skip "Transfer-Encoding" header if any |
1848 | * @param add_close add "close" token to the | 1848 | * @param add_close add "close" token to the |
1849 | * "Connection:" header (if any), ignored if no "Connection:" | 1849 | * "Connection:" header (if any), ignored if no "Connection:" |
1850 | * header was added by user or if "close" token is already | 1850 | * header was added by user or if "close" token is already |
@@ -1909,7 +1909,8 @@ add_user_headers (char *buf, | |||
1909 | buf[(*ppos)++] = ':'; | 1909 | buf[(*ppos)++] = ':'; |
1910 | buf[(*ppos)++] = ' '; | 1910 | buf[(*ppos)++] = ' '; |
1911 | if (add_close || add_keep_alive) | 1911 | if (add_close || add_keep_alive) |
1912 | { /* "Connection:" header must be always the first one */ | 1912 | { |
1913 | /* "Connection:" header must be always the first one */ | ||
1913 | mhd_assert (MHD_str_equal_caseless_n_ (hdr->header, \ | 1914 | mhd_assert (MHD_str_equal_caseless_n_ (hdr->header, \ |
1914 | MHD_HTTP_HEADER_CONNECTION, \ | 1915 | MHD_HTTP_HEADER_CONNECTION, \ |
1915 | hdr->header_size)); | 1916 | hdr->header_size)); |