Skip to content

Commit f79f44e

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

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
@@ -760,12 +760,7 @@ public function withHeader($header, $value)
760760
* ```php
761761
* $browser = $browser->withoutHeader('User-Agent');
762762
*
763-
* $browser->get($url)->then(function (Psr\Http\Message\ResponseInterface $response) {
764-
* //won't contain the User-Agent header
765-
* var_dump($response);
766-
* }, function (Exception $e) {
767-
* echo 'Error: ' . $e->getMessage() . PHP_EOL;
768-
* });
763+
* $browser->get($url)->then(…);
769764
* ```
770765
*
771766
* Note that this method only affects the headers which were set with the

0 commit comments

Comments
 (0)