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-c4023f1b3aa9svn/tags/lighttpd-1.4.13
parent
b68f200c99
commit
4581a73ab8
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue