[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 01/05: get_next_header_line(): improved and fixed commen
From: |
gnunet |
Subject: |
[libmicrohttpd] 01/05: get_next_header_line(): improved and fixed comments |
Date: |
Sun, 17 Oct 2021 16:31:54 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 17d613d91c8287400864afb53091b70696988559
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sun Oct 17 15:34:35 2021 +0300
get_next_header_line(): improved and fixed comments
---
src/microhttpd/connection.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index eb161ce7..af1bb150 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -2576,11 +2576,11 @@ get_next_header_line (struct MHD_Connection *connection,
if (line_len)
*line_len = pos;
- /* found, check if we have proper LFCR */
+ /* found, check if we have proper CRLF */
if ( ('\r' == rbuf[pos]) &&
('\n' == rbuf[pos + 1]) )
- rbuf[pos++] = '\0'; /* skip both r and n */
- rbuf[pos++] = '\0';
+ rbuf[pos++] = '\0'; /* skip CR if any */
+ rbuf[pos++] = '\0'; /* skip LF */
connection->read_buffer += pos;
connection->read_buffer_size -= pos;
connection->read_buffer_offset -= pos;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (746dae6a -> 381f2705), gnunet, 2021/10/17
- [libmicrohttpd] 02/05: Removed leftover after 3a02f18ca6a66997614cebf1231c86ad33148ad2, gnunet, 2021/10/17
- [libmicrohttpd] 01/05: get_next_header_line(): improved and fixed comments,
gnunet <=
- [libmicrohttpd] 03/05: Fixed parsing of bare CR as end-of-line in HTTP headers, gnunet, 2021/10/17
- [libmicrohttpd] 05/05: Fixed parsing of "\r\r", "\r", "\n\r" and "\n\n" as a single linefeed for chunked upload, gnunet, 2021/10/17
- [libmicrohttpd] 04/05: internal.h: fixed doxy for read buffer, gnunet, 2021/10/17