We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ec1166 commit 2e70426Copy full SHA for 2e70426
README.md
@@ -2407,12 +2407,7 @@ the [`withHeader()` method](#withheader).
2407
```php
2408
$browser = $browser->withoutHeader('User-Agent');
2409
2410
-$browser->get($url)->then(function (Psr\Http\Message\ResponseInterface $response) {
2411
- //won't contain the User-Agent header
2412
- var_dump($response);
2413
-}, function (Exception $e) {
2414
- echo 'Error: ' . $e->getMessage() . PHP_EOL;
2415
-});
+$browser->get($url)->then(…);
2416
```
2417
2418
Note that this method only affects the headers which were set with the
0 commit comments