Last active
January 28, 2016 17:24
-
-
Save daniel-sc/dfc27a352b31bc121668 to your computer and use it in GitHub Desktop.
Workaround for podio-php with http proxy sending multiple http responses
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// \Podio::request | |
$raw_response = preg_replace('/^.*\r\n\r\nHTTP/s', 'HTTP', $raw_response); | |
$header = preg_split('/\r\n\r\n/s', $raw_response, 2)[0]; | |
$raw_headers_size = strlen($header) + 4; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment