Mercurial > hg > nginx
changeset 5846:cda4fcb9294c
Limit req: don't truncate key value to 255 bytes.
While the module allows to use values up to 65535 bytes as a key,
that actually never worked properly.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Tue, 16 Sep 2014 21:12:51 +0400 |
parents | 40b24cfef18b |
children | 52b4984d2b3c |
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 Wed Sep 17 12:04:47 2014 +0400 +++ b/src/http/modules/ngx_http_limit_req_module.c Tue Sep 16 21:12:51 2014 +0400 @@ -461,7 +461,7 @@ lr = (ngx_http_limit_req_node_t *) &node->color; - lr->len = (u_char) len; + lr->len = (u_short) len; lr->excess = 0; ngx_memcpy(lr->data, data, len);