Skip to content

Commit 2e70426

Browse files
51imyyyclue
andauthored
Update README.md
Co-authored-by: Christian Lück <[email protected]>
1 parent 4ec1166 commit 2e70426

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2407,12 +2407,7 @@ the [`withHeader()` method](#withheader).
24072407
```php
24082408
$browser = $browser->withoutHeader('User-Agent');
24092409

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-
});
2410+
$browser->get($url)->then(…);
24162411
```
24172412

24182413
Note that this method only affects the headers which were set with the

0 commit comments

Comments
 (0)