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
|
@@ 185-191 (lines=7) @@
|
| 182 |
|
|
| 183 |
|
} |
| 184 |
|
|
| 185 |
|
foreach($values as $value){ |
| 186 |
|
$value = (string)$value; |
| 187 |
|
|
| 188 |
|
// cURL requires a special format for empty headers. |
| 189 |
|
// See https://github.com/guzzle/guzzle/issues/1882 for more details. |
| 190 |
|
$headers[] = $value === '' ? $name.';' : $name.': '.$value; |
| 191 |
|
} |
| 192 |
|
|
| 193 |
|
} |
| 194 |
|
|