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
+++ b/src/http/modules/ngx_http_limit_req_module.c
@@ -912,7 +912,7 @@ ngx_http_limit_req(ngx_conf_t *cf, ngx_c
             continue;
         }
 
-        if (ngx_strncmp(value[i].data, "nodelay", 7) == 0) {
+        if (ngx_strcmp(value[i].data, "nodelay") == 0) {
             nodelay = 1;
             continue;
         }