# HG changeset patch # User Valentin Bartenev # Date 1410887571 -14400 # Node ID cda4fcb9294c8f5a0998e7c5d57c5143457db766 # Parent 40b24cfef18bfd352c5cd9d209b6978956f432ec 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. 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 @@ -461,7 +461,7 @@ ngx_http_limit_req_lookup(ngx_http_limit 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);