diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2008-03-16 16:47:16 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2008-03-16 16:47:16 +0000 |
| commit | 70d0961658447a5a2ffea118d392a0776d3dd689 (patch) | |
| tree | d10e191a6a54a2ca500a8605133f22c563f4b09a /src | |
| parent | 8c8a6e5f2f3ae008de82e221c1d45d1c9321c15b (diff) | |
| download | nginx-70d0961658447a5a2ffea118d392a0776d3dd689.tar.gz nginx-70d0961658447a5a2ffea118d392a0776d3dd689.tar.bz2 | |
test the more likely case first
Diffstat (limited to 'src')
| -rw-r--r-- | src/http/ngx_http_parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |
