Skip to content

Instantly share code, notes, and snippets.

@daniel-sc
Last active January 28, 2016 17:24
Show Gist options
  • Save daniel-sc/dfc27a352b31bc121668 to your computer and use it in GitHub Desktop.
Save daniel-sc/dfc27a352b31bc121668 to your computer and use it in GitHub Desktop.
Workaround for podio-php with http proxy sending multiple http responses
// \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