- char nextline = *(eol_str + eol_len);
-
- if (nextline == '\t' || nextline == ' ') {
- php_http_buffer_cut(buffer, eol_str - buffer->data, eol_len);
- continue;
+ char *nextline = eol_str + eol_len;
+
+ if (*nextline == '\t' || *nextline == ' ') {
+ while (nextline < buffer->data + buffer->used && (*nextline == '\t' || *nextline == ' ')) {
+ ++nextline;
+ }
+ php_http_buffer_cut(buffer, eol_str - buffer->data, nextline - eol_str);
+ goto line_split;