diff --git a/src/Github/Http/CurlClient.php b/src/Github/Http/CurlClient.php index 3b0fcf2..df36335 100644 --- a/src/Github/Http/CurlClient.php +++ b/src/Github/Http/CurlClient.php @@ -78,7 +78,7 @@ protected function process(Request $request) # The HTTP/x.y may occur multiple times with proxy (HTTP/1.1 200 Connection Established) $responseHeaders = []; - } elseif ($line !== "\r\n") { + } elseif (strpos($line,':')!==false) { list($name, $value) = explode(':', $line, 2); $responseHeaders[trim($name)] = trim($value); }