summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_upstream.c
diff options
context:
space:
mode:
authorJ Carter <jordan.carter@outlook.com>2023-11-25 21:57:09 +0000
committerJ Carter <jordan.carter@outlook.com>2023-11-25 21:57:09 +0000
commit71ca978a352e025151a78bfcedc0d64814b062cb (patch)
tree75a5bc05963c5d52c8a53b4a7c0fa0b68084b877 /src/http/ngx_http_upstream.c
parentea8270c6142869367c5608bff92df9f5b3f32d37 (diff)
downloadnginx-71ca978a352e025151a78bfcedc0d64814b062cb.tar.gz
nginx-71ca978a352e025151a78bfcedc0d64814b062cb.tar.bz2
Upstream: variables support in proxy_limit_rate and friends.
Diffstat (limited to 'src/http/ngx_http_upstream.c')
-rw-r--r--src/http/ngx_http_upstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index 2ce9f2114..d29e503cb 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -3236,7 +3236,7 @@ ngx_http_upstream_send_response(ngx_http_request_t *r, ngx_http_upstream_t *u)
p->downstream = c;
p->pool = r->pool;
p->log = c->log;
- p->limit_rate = u->conf->limit_rate;
+ p->limit_rate = ngx_http_complex_value_size(r, u->conf->limit_rate, 0);
p->start_sec = ngx_time();
p->cacheable = u->cacheable || u->store;