test the more likely case first

This commit is contained in:
Igor Sysoev 2008-03-16 16:47:16 +00:00
parent 8c8a6e5f2f
commit 70d0961658

View File

@ -882,10 +882,10 @@ ngx_http_parse_header_line(ngx_http_request_t *r, ngx_buf_t *b)
/* end of header line */
case sw_almost_done:
switch (ch) {
case CR:
break;
case LF:
goto done;
case CR:
break;
default:
return NGX_HTTP_PARSE_INVALID_HEADER;
}