Skip to content

http.request: handling of duplicated headers should be documented #441

Description

@johnd0e

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions