src/Psr18/CurlHandle.php 1 location
|
@@ 188-194 (lines=7) @@
|
| 185 |
|
|
| 186 |
|
} |
| 187 |
|
|
| 188 |
|
foreach($values as $value){ |
| 189 |
|
$value = (string)$value; |
| 190 |
|
|
| 191 |
|
// cURL requires a special format for empty headers. |
| 192 |
|
// See https://github.com/guzzle/guzzle/issues/1882 for more details. |
| 193 |
|
$headers[] = $value === '' ? $name.';' : $name.': '.$value; |
| 194 |
|
} |
| 195 |
|
|
| 196 |
|
} |
| 197 |
|
|
src/Psr18/StreamClient.php 1 location
|
@@ 90-96 (lines=7) @@
|
| 87 |
|
foreach($request->getHeaders() as $name => $values){ |
| 88 |
|
$name = strtolower($name); |
| 89 |
|
|
| 90 |
|
foreach($values as $value){ |
| 91 |
|
$value = (string)$value; |
| 92 |
|
|
| 93 |
|
// cURL requires a special format for empty headers. |
| 94 |
|
// See https://github.com/guzzle/guzzle/issues/1882 for more details. |
| 95 |
|
$headers[] = $value === '' ? $name.';' : $name.': '.$value; |
| 96 |
|
} |
| 97 |
|
} |
| 98 |
|
|
| 99 |
|
return $headers; |