On Tue, Feb 15, 2011 at 7:46 AM, Richard Kearsley
<Richard.Kearsley@m247.com> wrote:
>
> Is there something special with $limit_rate stopping me to set it? Is it a
> string/int issue?
>
Yeah, $limit_rate is a special variable defined in the http core module:
http://wiki.nginx.org/NginxHttpCoreModule#.24limit_rate
For now, ngx_lua's "ngx.var.foo = xxx" assignment does not support
such special variables. This will change in a future release.
I've confirmed for you that replacing $limit_rate with $limit gives
the expected headers :) Not sure if you really want to set $limit_rate
to control transfer limit rate though.
Cheers,
-agentzh
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx