src/Psr18/StreamClient.php 1 location
|
@@ 97-103 (lines=7) @@
|
94 |
|
foreach($request->getHeaders() as $name => $values){ |
95 |
|
$name = strtolower($name); |
96 |
|
|
97 |
|
foreach($values as $value){ |
98 |
|
$value = (string)$value; |
99 |
|
|
100 |
|
// cURL requires a special format for empty headers. |
101 |
|
// See https://github.com/guzzle/guzzle/issues/1882 for more details. |
102 |
|
$headers[] = $value === '' ? $name.';' : $name.': '.$value; |
103 |
|
} |
104 |
|
} |
105 |
|
|
106 |
|
return $headers; |
src/CurlUtils/CurlHandle.php 1 location
|
@@ 204-210 (lines=7) @@
|
201 |
|
|
202 |
|
} |
203 |
|
|
204 |
|
foreach($values as $value){ |
205 |
|
$value = (string)$value; |
206 |
|
|
207 |
|
// cURL requires a special format for empty headers. |
208 |
|
// See https://github.com/guzzle/guzzle/issues/1882 for more details. |
209 |
|
$headers[] = $value === '' ? $name.';' : $name.': '.$value; |
210 |
|
} |
211 |
|
|
212 |
|
} |
213 |
|
|