From: Igor Sysoev Date: Sun, 16 Mar 2008 16:47:16 +0000 (+0000) Subject: test the more likely case first X-Git-Tag: release-0.6.29~7 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=70d0961658447a5a2ffea118d392a0776d3dd689;p=nginx.git test the more likely case first --- diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c index 2e38434b9..9777ebb98 100644 --- a/src/http/ngx_http_parse.c +++ b/src/http/ngx_http_parse.c @@ -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; }