Skip to content

Commit 3e31a5d

Browse files
51imyyyclue
andauthored
Update src/Browser.php
Co-authored-by: Christian Lück <[email protected]>
1 parent ea83b54 commit 3e31a5d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Browser.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -734,12 +734,7 @@ public function withResponseBuffer($maximumSize)
734734
* ```php
735735
* $browser = $browser->withHeader('User-Agent', 'ACME');
736736
*
737-
* $browser->get($url)->then(function (Psr\Http\Message\ResponseInterface $response) {
738-
* //will contain the header User-Agent with the value ACME
739-
* var_dump($response);
740-
* }, function (Exception $e) {
741-
* echo 'Error: ' . $e->getMessage() . PHP_EOL;
742-
* });
737+
* $browser->get($url)->then(…);
743738
* ```
744739
*
745740
* Note that the new header will overwrite any headers previously set with

0 commit comments

Comments
 (0)