Re: mod_lua / mod_proxy: set cookie on the proxied connection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: users@xxxxxxxxxxxxxxxx
- Subject: Re: mod_lua / mod_proxy: set cookie on the proxied connection
- From: Gerry <ml+apache@xxxxxxxx>
- Date: Fri, 8 Jan 2021 18:39:18 +0800
- In-reply-to: <CAKQ1sVOj3JYreqWNMRapr=cPDt=1ix0MXHVKAPuz7JRjncPtkA@mail.gmail.com>
- Reply-to: users@xxxxxxxxxxxxxxxx
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0
On 1/8/21 6:23 PM, Yann Ylavic wrote:
I'm not a Lua coder but wouldn't (something like) this here:
local cookie_in = r.headers_in['Cookie']
if cookie_in ~= nil then
cookie_in = cookie_in .. "; key=value"
else
cookie_in = "key=value"
end
r.headers_in['Cookie'] = cookie_in
work?
Hi Yann,
Seems our posts crossed each other. That's pretty much exactly what I
ended up doing indeed, and it works.
Thank you for looking into it and providing feedback!
Cheers,
Gerry
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
[Index of Archives]
[Open SSH Users]
[Linux ACPI]
[Linux Kernel]
[Linux Laptop]
[Kernel Newbies]
[Security]
[Netfilter]
[Bugtraq]
[Squid]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Samba]
[Video 4 Linux]
[Device Mapper]