Added Proxy support for Api Transport (#11968)

This commit is contained in:
kleinem86
2020-07-29 16:00:55 +02:00
committed by GitHub
parent b0b62aa999
commit a4f5af069c
2 changed files with 17 additions and 0 deletions

View File

@@ -72,6 +72,7 @@ class Api extends Transport
}
$client = new \GuzzleHttp\Client();
$request_opts['proxy'] = get_guzzle_proxy();
if (isset($auth) && !empty($auth[0])) {
$request_opts['auth'] = $auth;
}