Skip to content

Commit 49ef703

Browse files
author
\nrlucke
committed
fix #274
1 parent bb86ee5 commit 49ef703

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

blocks/EmbedBlock/EmbedBlock.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ private function curl_get($url) {
154154
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
155155
curl_setopt($curl, CURLOPT_TIMEOUT, 30);
156156
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
157+
curl_setopt($curl, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
157158
$return = curl_exec($curl);
158159
curl_close($curl);
159160

0 commit comments

Comments
 (0)