Skip to content

Commit 68cefb3

Browse files
committed
+ User agent
1 parent f244a56 commit 68cefb3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Readers/HttpReader.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ public function __construct($config = null)
4040
$this->config = $config ?: [
4141
'allow_redirects' => ['max' => 10],
4242
'cookies' => $this->jar,
43-
'connect_timeout' => 5
43+
'connect_timeout' => 5,
44+
'headers' => [
45+
'User-Agent' => 'dusterio/link-preview v1.2'
46+
]
4447
];
4548
}
4649

0 commit comments

Comments
 (0)