Added limit_rate_after as variable

Miroslav Novy miranovy at gmail.com
Thu Jul 26 07:16:38 UTC 2018


# HG changeset patch
# User Miroslav Nový <miranovy at gmail.com>
# Date 1532521218 0
#      Wed Jul 25 12:20:18 2018 +0000
# Node ID f5da29b630f779ab294cc7ff78213a175976424c
# Parent  f7e79596baf209151682f2f7d220161c034657ac
Added limit_rate_after as variable

diff -r f7e79596baf2 -r f5da29b630f7 src/http/ngx_http_variables.c
--- a/src/http/ngx_http_variables.c Tue Jul 24 18:46:54 2018 +0300
+++ b/src/http/ngx_http_variables.c Wed Jul 25 12:20:18 2018 +0000
@@ -326,6 +326,11 @@
       offsetof(ngx_http_request_t, limit_rate),
       NGX_HTTP_VAR_CHANGEABLE|NGX_HTTP_VAR_NOCACHEABLE, 0 },

+    { ngx_string("limit_rate_after"), ngx_http_variable_request_set_size,
+      ngx_http_variable_request_get_size,
+      offsetof(ngx_http_request_t, limit_rate_after),
+      NGX_HTTP_VAR_CHANGEABLE|NGX_HTTP_VAR_NOCACHEABLE, 0 },
+
     { ngx_string("connection"), NULL,
       ngx_http_variable_connection, 0, 0, 0 },
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20180726/7bc9e579/attachment.html>


More information about the nginx-devel mailing list