Mercurial > hg > nginx
changeset 5411:5483d9e77b32
Limit req: fixed "nodelay" parsing.
Previously arguments starting with "nodelay" were considered valid,
e.g. "limit_req ... nodelayFOO;".
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 02 Oct 2013 15:07:17 +0400 |
parents | 16b68c724438 |
children | 5b5a486bd40e |
files | src/http/modules/ngx_http_limit_req_module.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_limit_req_module.c Wed Oct 02 15:07:15 2013 +0400 +++ b/src/http/modules/ngx_http_limit_req_module.c Wed Oct 02 15:07:17 2013 +0400 @@ -912,7 +912,7 @@ continue; } - if (ngx_strncmp(value[i].data, "nodelay", 7) == 0) { + if (ngx_strcmp(value[i].data, "nodelay") == 0) { nodelay = 1; continue; }