You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given an incoming request with multiple cookies,
when calling server.cookies in Lua,
then the returned table contains only a single key/value pair, with the first cookie name as lower case and the rest of the cookie header as value.
This way it is not possible to get an individual cookie value if multiple cookies are in the request because the server.cookies table alway only contains a single entry. Currently we have to get the cookie header and parse the returned string in order to be able to extract a specific cookie.
Expected Behaviour
The cookie names in the returned table should be the original case and not lower case
The cookie values in the returned table should be the individual values for each cookie. If n cookies are sent with the request then n entries should be in the table.
The text was updated successfully, but these errors were encountered:
seakayone
changed the title
Lua integration server.cookies does not return multiple cookies
Lua integration server.cookies does not return multiple cookies (DEV-2300)
Jun 20, 2023
Problem Description
Given an incoming request with multiple cookies,
when calling
server.cookies
in Lua,then the returned table contains only a single key/value pair, with the first cookie name as lower case and the rest of the cookie header as value.
This way it is not possible to get an individual cookie value if multiple cookies are in the request because the
server.cookies
table alway only contains a single entry. Currently we have to get thecookie
header and parse the returned string in order to be able to extract a specific cookie.Expected Behaviour
Link to internal ticket: https://linear.app/dasch/issue/DEV-2300/sipi-lua-integration-servercookies-does-not-return-multiple-cookies
The text was updated successfully, but these errors were encountered: