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
|
@@ 205-211 (lines=7) @@
|
| 202 |
|
|
| 203 |
|
} |
| 204 |
|
|
| 205 |
|
foreach($values as $value){ |
| 206 |
|
$value = (string)$value; |
| 207 |
|
|
| 208 |
|
// cURL requires a special format for empty headers. |
| 209 |
|
// See https://github.com/guzzle/guzzle/issues/1882 for more details. |
| 210 |
|
$headers[] = $value === '' ? $name.';' : $name.': '.$value; |
| 211 |
|
} |
| 212 |
|
|
| 213 |
|
} |
| 214 |
|
|