@@ -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 |
@@ -12,8 +12,10 @@ |
||
12 | 12 | |
13 | 13 | namespace chillerlan\HTTP\Psr7; |
14 | 14 | |
15 | +use Exception; |
|
16 | +use InvalidArgumentException; |
|
15 | 17 | use Psr\Http\Message\StreamInterface; |
16 | -use Exception, InvalidArgumentException, RuntimeException; |
|
18 | +use RuntimeException; |
|
17 | 19 | |
18 | 20 | final class Stream implements StreamInterface{ |
19 | 21 |
@@ -14,7 +14,8 @@ |
||
14 | 14 | |
15 | 15 | use chillerlan\HTTP\{Psr17, Psr17\StreamFactory}; |
16 | 16 | use Psr\Http\Message\{StreamInterface, UploadedFileInterface}; |
17 | -use InvalidArgumentException, RuntimeException; |
|
17 | +use InvalidArgumentException; |
|
18 | +use RuntimeException; |
|
18 | 19 | |
19 | 20 | final class UploadedFile implements UploadedFileInterface{ |
20 | 21 |