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
]
I am trying to connect to a server that returns three headers with the same name:
Set-Cookie. When I do a simpleit returns an array of headers, but
Set-Cookieis 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 ]