We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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; }
The text was updated successfully, but these errors were encountered:
Can you please elaborate on this functionality? If you still remember since it's been years 😄
Sorry, something went wrong.
No branches or pull requests
I have a api where there are duplicated header keys. Is it possible to extract the headers with ignoring parseHeaders?
I changed the function:
The text was updated successfully, but these errors were encountered: