Limit req: fixed "nodelay" parsing.

Previously arguments starting with "nodelay" were considered valid,
e.g. "limit_req ... nodelayFOO;".
This commit is contained in:
Maxim Dounin 2013-10-02 15:07:17 +04:00
parent 31d023e53e
commit 5a63dcc5d7

View 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;
}