Skip to content

Commit

Permalink
added support for default headers in Browser PHP and moved default he…
Browse files Browse the repository at this point in the history
…ader user-agent to the default headers.
  • Loading branch information
51imyyy committed Aug 30, 2022
1 parent 3ac1b45 commit 2f7d638
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions README.md
Expand Up @@ -2388,7 +2388,6 @@ given setting applied.
The `withHeader(string $header, string $value): Browser` method can be used to
add a request header for all following requests.
```php
$browser->get($url)->then(function (Psr\Http\Message\ResponseInterface $response) {
var_dump($response);
}, function (Exception $e) {
echo 'Error: ' . $e->getMessage() . PHP_EOL;
Expand All @@ -2406,7 +2405,6 @@ remove any default request headers previously set via
the [`withHeader()` method](#withheader).

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

0 comments on commit 2f7d638

Please sign in to comment.