diff options
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r-- | src/microhttpd/connection.c | 6 |
1 files 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, | |||
2576 | 2576 | ||
2577 | if (line_len) | 2577 | if (line_len) |
2578 | *line_len = pos; | 2578 | *line_len = pos; |
2579 | /* found, check if we have proper LFCR */ | 2579 | /* found, check if we have proper CRLF */ |
2580 | if ( ('\r' == rbuf[pos]) && | 2580 | if ( ('\r' == rbuf[pos]) && |
2581 | ('\n' == rbuf[pos + 1]) ) | 2581 | ('\n' == rbuf[pos + 1]) ) |
2582 | rbuf[pos++] = '\0'; /* skip both r and n */ | 2582 | rbuf[pos++] = '\0'; /* skip CR if any */ |
2583 | rbuf[pos++] = '\0'; | 2583 | rbuf[pos++] = '\0'; /* skip LF */ |
2584 | connection->read_buffer += pos; | 2584 | connection->read_buffer += pos; |
2585 | connection->read_buffer_size -= pos; | 2585 | connection->read_buffer_size -= pos; |
2586 | connection->read_buffer_offset -= pos; | 2586 | connection->read_buffer_offset -= pos; |