Skip to content

Commit 4ec1166

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

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
@@ -2391,12 +2391,7 @@ add a request header for all following requests.
23912391
```php
23922392
$browser = $browser->withHeader('User-Agent', 'ACME');
23932393

2394-
$browser->get($url)->then(function (Psr\Http\Message\ResponseInterface $response) {
2395-
//will contain the header User-Agent with the value ACME
2396-
var_dump($response);
2397-
}, function (Exception $e) {
2398-
echo 'Error: ' . $e->getMessage() . PHP_EOL;
2399-
});
2394+
$browser->get($url)->then(…);
24002395
```
24012396

24022397
Note that the new header will overwrite any headers previously set with

0 commit comments

Comments
 (0)