Skip to content

Commit

Permalink
+ User agent
Browse files Browse the repository at this point in the history
  • Loading branch information
dusterio committed Jan 23, 2018
1 parent f244a56 commit 68cefb3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Readers/HttpReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ public function __construct($config = null)
$this->config = $config ?: [
'allow_redirects' => ['max' => 10],
'cookies' => $this->jar,
'connect_timeout' => 5
'connect_timeout' => 5,
'headers' => [
'User-Agent' => 'dusterio/link-preview v1.2'
]
];
}

Expand Down

0 comments on commit 68cefb3

Please sign in to comment.