Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-jy committed Dec 18, 2024
1 parent 0ac468d commit 5e44c43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/file_transfer_agent/gcs_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ function GCSUtil(connectionConfig, httpClient, fileStream) {

if (typeof httpClient === 'undefined') {
axios = require('axios');
//When http_proxy is enabled, the driver should use Axios for HTTPS requests to avoid relying on HTTP_PROXY in GCS.
const proxy = ProxyUtil.getProxy(connectionConfig.getProxy(), 'GCS Util');

//When http_proxy is enabled, the driver should use Axios for HTTPS requests to avoid relying on HTTP_PROXY in GCS.
if (proxy || Util.getEnvVar('http_proxy')) {
isProxyEnabled = true;
const proxyAgent = getProxyAgent(proxy, new URL(connectionConfig.accessUrl), endPoint || `storage.${stageInfo.region.toLowerCase()}.rep.googleapis.com` );
Expand Down

0 comments on commit 5e44c43

Please sign in to comment.