We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96cb825 commit 8abd4a9Copy full SHA for 8abd4a9
src/Utils/Download.php
@@ -41,6 +41,13 @@ public static function fileFromUrl(
41
curl_setopt($curlHandle, CURLOPT_TIMEOUT, 120);
42
curl_setopt($curlHandle, CURLOPT_FILE, $file);
43
44
+ // Set the user agent header.
45
+ curl_setopt(
46
+ $curlHandle,
47
+ CURLOPT_USERAGENT,
48
+ 'Mozilla/5.0 (compatible; Embedded MySql; +https://github.com/lucatume/wp-browser'
49
+ );
50
+
51
if (!$verifyHost) {
52
/** @noinspection CurlSslServerSpoofingInspection */
53
curl_setopt($curlHandle, CURLOPT_SSL_VERIFYHOST, 0);
0 commit comments