@@ -12,10 +12,10 @@ |
||
12 | 12 | |
13 | 13 | namespace chillerlan\HTTP\MagicAPI; |
14 | 14 | |
15 | -use chillerlan\HTTP\Psr7; |
|
16 | 15 | use Psr\Http\Message\ResponseInterface; |
17 | 16 | use Psr\Log\LoggerInterface; |
18 | 17 | use ReflectionClass; |
18 | +use chillerlan\HTTP\Psr7; |
|
19 | 19 | |
20 | 20 | /** |
21 | 21 | * @link http://php.net/manual/language.oop5.magic.php#118617 |
@@ -12,9 +12,9 @@ |
||
12 | 12 | |
13 | 13 | namespace chillerlan\HTTP\Psr7; |
14 | 14 | |
15 | +use InvalidArgumentException; |
|
15 | 16 | use chillerlan\HTTP\Psr17; |
16 | 17 | use chillerlan\HTTP\Psr17\StreamFactory; |
17 | -use InvalidArgumentException; |
|
18 | 18 | use Psr\Http\Message\{StreamInterface, UploadedFileInterface}; |
19 | 19 | use RuntimeException; |
20 | 20 |
@@ -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 |