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 3e31a5d commit f79f44eCopy full SHA for f79f44e
src/Browser.php
@@ -760,12 +760,7 @@ public function withHeader($header, $value)
760
* ```php
761
* $browser = $browser->withoutHeader('User-Agent');
762
*
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
- * });
+ * $browser->get($url)->then(…);
769
* ```
770
771
* Note that this method only affects the headers which were set with the
0 commit comments