php-rest-api
php-rest-api copied to clipboard
Proxy issue
Hi, I have an issue with a proxy containing multiple lines:
$parts = explode("\r\n\r\n", $response, 3); $isThreePartResponse = (strpos($parts[0], "\n") === false && strpos($parts[0], 'HTTP/1.') === 0);
$parts[0] contains a newline so it's not considered as a three part response.