We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44451bc commit 6781b7bCopy full SHA for 6781b7b
src/sdk/object_sdk.js
@@ -154,9 +154,9 @@ class ObjectSDK {
154
}
155
if (ns_info.endpoint_type === 'AWS' ||
156
ns_info.endpoint_type === 'S3_COMPATIBLE') {
157
- const httpOptions = ns_info.proxy ? {
+ const httpOptions = (ns_info.endpoint_type === 'AWS' && !ns_info.proxy) ? undefined : {
158
agent: http_utils.get_unsecured_http_agent(ns_info.endpoint, ns_info.proxy)
159
- } : undefined;
+ };
160
return new NamespaceS3({
161
params: { Bucket: ns_info.target_bucket },
162
endpoint: ns_info.endpoint,
0 commit comments