Skip to content

Commit 2f7d638

Browse files
committed
added support for default headers in Browser PHP and moved default header user-agent to the default headers.
1 parent 3ac1b45 commit 2f7d638

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2388,7 +2388,6 @@ given setting applied.
23882388
The `withHeader(string $header, string $value): Browser` method can be used to
23892389
add a request header for all following requests.
23902390
```php
2391-
$browser->get($url)->then(function (Psr\Http\Message\ResponseInterface $response) {
23922391
var_dump($response);
23932392
}, function (Exception $e) {
23942393
echo 'Error: ' . $e->getMessage() . PHP_EOL;
@@ -2406,7 +2405,6 @@ remove any default request headers previously set via
24062405
the [`withHeader()` method](#withheader).
24072406

24082407
```php
2409-
$browser->get($url)->then(function (Psr\Http\Message\ResponseInterface $response) {
24102408
var_dump($response);
24112409
}, function (Exception $e) {
24122410
echo 'Error: ' . $e->getMessage() . PHP_EOL;

0 commit comments

Comments
 (0)