libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 17d613d91c8287400864afb53091b70696988559
parent 746dae6ae094664c6ed0fa4bf5c98db7c758e8bc
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sun, 17 Oct 2021 15:34:35 +0300

get_next_header_line(): improved and fixed comments

Diffstat:
Msrc/microhttpd/connection.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 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;