mirror of
https://github.com/nginx/nginx.git
synced 2024-11-24 13:49:05 +08:00
test the more likely case first
This commit is contained in:
parent
8c8a6e5f2f
commit
70d0961658
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user