From: Maxim Dounin Date: Wed, 2 Oct 2013 11:07:17 +0000 (+0400) Subject: Limit req: fixed "nodelay" parsing. X-Git-Tag: release-1.5.7~21 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=5a63dcc5d7bde5be49952affec1eaa4aa9d2ceb8;p=nginx.git Limit req: fixed "nodelay" parsing. Previously arguments starting with "nodelay" were considered valid, e.g. "limit_req ... nodelayFOO;". --- diff --git a/src/http/modules/ngx_http_limit_req_module.c b/src/http/modules/ngx_http_limit_req_module.c index 90434c956..d4c1ff6c3 100644 --- a/src/http/modules/ngx_http_limit_req_module.c +++ b/src/http/modules/ngx_http_limit_req_module.c @@ -912,7 +912,7 @@ ngx_http_limit_req(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) continue; } - if (ngx_strncmp(value[i].data, "nodelay", 7) == 0) { + if (ngx_strcmp(value[i].data, "nodelay") == 0) { nodelay = 1; continue; }