|
@@ -519,7 +519,7 @@ |
|
|
block discarded – undo |
|
519
|
519
|
protected function send($ch): HttpResponse |
|
520
|
520
|
{ |
|
521
|
521
|
$responseHeaders = []; |
|
522
|
|
- curl_setopt($ch, CURLOPT_HEADERFUNCTION, function ($curl, $header) use (&$responseHeaders) { |
|
|
522
|
+ curl_setopt($ch, CURLOPT_HEADERFUNCTION, function($curl, $header) use (&$responseHeaders) { |
|
523
|
523
|
if (strpos($header, ':') !== false) { |
|
524
|
524
|
list($name, $value) = explode(':', $header); |
|
525
|
525
|
if (array_key_exists($name, $responseHeaders) === false) { |
Please login to merge, or discard this patch.