httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Gruno <humbed...@apache.org>
Subject Re: mod_lua: Accessing multiple Set-Cookie response headers
Date Mon, 18 May 2015 16:58:15 GMT
This should really go to users@, but anyway...
You might want to take a look at:

http://modlua.org/api/builtin#getcookie
http://modlua.org/api/builtin#setcookie

With regards,
Daniel.

On 2015-05-18 16:53, Christian Folini wrote:
> Hello,
>
> Mod_lua gave me a few quick wins when I started to play around
> with cookies on a reverse proxy. But then the obvious happened:
> the backend started to issue multiple Set-Cookie response headers
> in the same http response.
>
> mod_lua returns the headers via r.headers_out, but while the
> documentation states the return value is of lua-type "table",
> it is actually of lua-type "userdata" and I can not seem my way
> around accessing more then a single Set-Cookie header per
> request. The latter is done via r.headers_out['Set-Cookie'],
> but now I got stuck.
>
> Any ideas?
>
> Best,
>
> Christian Folini
>


Mime
View raw message