Skip to content

Commit

Permalink
fix(README): user agent example
Browse files Browse the repository at this point in the history
  • Loading branch information
gulien committed Jun 13, 2024
1 parent 11bccc0 commit 3ebf9dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -576,10 +576,7 @@ use Gotenberg\Gotenberg;

$request = Gotenberg::chromium($apiUrl)
->pdf()
->extraHttpHeaders([
'My-Header-1' => 'My value',
'My-Header-2' => 'My value'
])
->userAgent('Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)')
->url('https://my.url');
```

Expand All @@ -592,7 +589,10 @@ use Gotenberg\Gotenberg;

$request = Gotenberg::chromium($apiUrl)
->pdf()
->userAgent('Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)')
->extraHttpHeaders([
'My-Header-1' => 'My value',
'My-Header-2' => 'My value'
])
->url('https://my.url');
```

Expand Down

0 comments on commit 3ebf9dd

Please sign in to comment.