use http for proxy urls via guzzle (#13601)

Fixes #13598
This commit is contained in:
Jellyfrog
2021-12-08 15:22:20 +01:00
committed by GitHub
parent a046420888
commit e803fa57ac

View File

@@ -61,13 +61,13 @@ class Proxy
}
/**
* Return the proxy url in guzzle format "tcp://127.0.0.1:8888"
* Return the proxy url in guzzle format "http://127.0.0.1:8888"
*/
public static function forGuzzle(): string
{
$proxy = self::forCurl();
return empty($proxy) ? '' : ('tcp://' . $proxy);
return empty($proxy) ? '' : ('http://' . $proxy);
}
/**