[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-httpd-users
Subject:    Re: [users@httpd] mod_lua / mod_proxy: set cookie on the proxied connection
From:       Gerry <ml+apache () x-net ! be>
Date:       2021-01-08 10:39:18
Message-ID: 0a386729-e103-e8fc-08ee-1fc374f460fc () x-net ! be
[Download RAW message or body]

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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic