Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

Re: set $cookie_abc "$cookie_abc";

$
0
0
On Monday 11 February 2013 17:41:05 amodpandey wrote:
> Thank you. But this is not what I am looking for. The question is about
> defining $cookie_abc and default it to $cookie_abc itself (if the value
> exists).
>
> the map will give me the value in $abc which I am not looking for.
>
> BTW set $cookie_abc "$abc"; will still reset the value of $abc to default
>

All magic variable $cookie_*, $http_*, $upstream_http_* are always exist.
By defining "set $cookie_abc" you just hid the original variable, so don't
do that.

It more looks like a bug in the lua module.

wbr, Valentin V. Bartenev

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Viewing all articles
Browse latest Browse all 53287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>