Skip to content

Commit

Permalink
Inject a custom user-agent through __construct
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdebril committed May 29, 2018
1 parent 8250978 commit c22ab80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/change-user-agent.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
$client = new \FeedIo\Adapter\Guzzle\Client(
new GuzzleHttp\Client([
'handler' => $stack
])
]),
'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36'
);

$feedIo = new \FeedIo\FeedIo($client, $logger);
Expand Down

0 comments on commit c22ab80

Please sign in to comment.