Re: mod_lua / mod_proxy: set cookie on the proxied connection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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]

  Powered by Linux