@@ -214,12 +214,12 @@ |
||
| 214 | 214 | $options[CURLOPT_HTTPHEADER] = $curlHeaders; |
| 215 | 215 | |
| 216 | 216 | // If the Expect header is not present, prevent curl from adding it |
| 217 | - if (!$this->request->hasHeader('Expect')) { |
|
| 217 | + if (!$this->request->hasHeader('Expect')){ |
|
| 218 | 218 | $options[CURLOPT_HTTPHEADER][] = 'Expect:'; |
| 219 | 219 | } |
| 220 | 220 | |
| 221 | 221 | // cURL sometimes adds a content-type by default. Prevent this. |
| 222 | - if (!$this->request->hasHeader('Content-Type')) { |
|
| 222 | + if (!$this->request->hasHeader('Content-Type')){ |
|
| 223 | 223 | $options[CURLOPT_HTTPHEADER][] = 'Content-Type:'; |
| 224 | 224 | } |
| 225 | 225 | |
@@ -157,8 +157,8 @@ |
||
| 157 | 157 | private function hasHeader(array $headers, string $key):bool{ |
| 158 | 158 | $lowercaseHeader = strtolower($key); |
| 159 | 159 | |
| 160 | - foreach ($headers as $k => $v) { |
|
| 161 | - if (strtolower($k) === $lowercaseHeader) { |
|
| 160 | + foreach ($headers as $k => $v){ |
|
| 161 | + if (strtolower($k) === $lowercaseHeader){ |
|
| 162 | 162 | return true; |
| 163 | 163 | } |
| 164 | 164 | } |