]> git.kaiwu.me - nginx.git/commitdiff
Limit req: fixed "nodelay" parsing.
authorMaxim Dounin <mdounin@mdounin.ru>
Wed, 2 Oct 2013 11:07:17 +0000 (15:07 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Wed, 2 Oct 2013 11:07:17 +0000 (15:07 +0400)
Previously arguments starting with "nodelay" were considered valid,
e.g. "limit_req ... nodelayFOO;".

src/http/modules/ngx_http_limit_req_module.c

index 90434c956a6f418b3898efdc4118474557029df0..d4c1ff6c382a03715246717da41d7ca067965ed7 100644 (file)
@@ -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;
         }