fixed off-by-one bug when the second CRLF after a HTTP-header is in a second read() call

- fixes #876


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1352 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.13
Jan Kneschke 2006-10-03 13:33:35 +00:00
parent b68f200c99
commit 4581a73ab8
1 changed files with 1 additions and 1 deletions

View File

@ -952,7 +952,7 @@ int connection_handle_read_state(server *srv, connection *con) {
0 == strncmp(lookahead_chunk->mem->ptr, "\r\n\r\n" + have_chars, missing_chars)) {
last_chunk = lookahead_chunk;
last_offset = missing_chars + 1;
last_offset = missing_chars;
break;
}