It is common to have multiple headers with the same title in an HTTP response. For example, consider Set-Cookie.
In the receiveheaders function, I see this code:
|
if headers[name] then headers[name] = headers[name] .. ", " .. value |
I am not sure if this practice is sort of standard, but it is not obvious and should be documented.
https://lunarmodules.github.io/luasocket/http.html#request
It is common to have multiple headers with the same title in an HTTP response. For example, consider
Set-Cookie.In the
receiveheadersfunction, I see this code:luasocket/src/http.lua
Line 69 in 1fad162
I am not sure if this practice is sort of standard, but it is not obvious and should be documented.
https://lunarmodules.github.io/luasocket/http.html#request