From 70d0961658447a5a2ffea118d392a0776d3dd689 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Sun, 16 Mar 2008 16:47:16 +0000 Subject: test the more likely case first --- src/http/ngx_http_parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; } -- cgit