[nginx] Limit req: fixed "nodelay" parsing.
Maxim Dounin
mdounin at mdounin.ru
Wed Oct 2 11:08:39 UTC 2013
details: http://hg.nginx.org/nginx/rev/5483d9e77b32
branches:
changeset: 5411:5483d9e77b32
user: Maxim Dounin <mdounin at mdounin.ru>
date: Wed Oct 02 15:07:17 2013 +0400
description:
Limit req: fixed "nodelay" parsing.
Previously arguments starting with "nodelay" were considered valid,
e.g. "limit_req ... nodelayFOO;".
diffstat:
src/http/modules/ngx_http_limit_req_module.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff --git a/src/http/modules/ngx_http_limit_req_module.c b/src/http/modules/ngx_http_limit_req_module.c
--- 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;
}
More information about the nginx-devel
mailing list