Skip to content

Multiple headers with the same name #59

@DCzajkowski

Description

@DCzajkowski

I am trying to connect to a server that returns three headers with the same name: Set-Cookie. When I do a simple

dd(Zttp::asFormParams()->post($url, [
    // some data
])->headers()->toArray());

it returns an array of headers, but Set-Cookie is only one there.

Expected: There should be an array of cookies returned:

[
    'Set-Cookie' => [
        'cookie-1',
        'cookie-2'
    ],
    // some other data
]

Actual: Only first cookie is returned

[
    'Set-Cookie' => 'cookie-1',
    // some other data
]

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