-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
I have a api where there are duplicated header keys. Is it possible to extract the headers with ignoring parseHeaders?
I changed the function:
protected function parseHeaders($response, $headerSize)
{
$headers = substr($response, 0, $headerSize);
$parsedHeaders = [];
foreach (explode("\r\n",$headers) as $header)
{
if (strpos($header, ':'))
{
$nestedHeader = explode(':', $header);
$parsedHeaders[$nestedHeader[0]][] = trim($nestedHeader[1]);
}
}
return $parsedHeaders;
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels