Skip to content

Commit 6781b7b

Browse files
jeniawhitenimrod-becker
authored andcommitted
Fixing namespace bucket to work with s3 compatible https
1 parent 44451bc commit 6781b7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sdk/object_sdk.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ class ObjectSDK {
154154
}
155155
if (ns_info.endpoint_type === 'AWS' ||
156156
ns_info.endpoint_type === 'S3_COMPATIBLE') {
157-
const httpOptions = ns_info.proxy ? {
157+
const httpOptions = (ns_info.endpoint_type === 'AWS' && !ns_info.proxy) ? undefined : {
158158
agent: http_utils.get_unsecured_http_agent(ns_info.endpoint, ns_info.proxy)
159-
} : undefined;
159+
};
160160
return new NamespaceS3({
161161
params: { Bucket: ns_info.target_bucket },
162162
endpoint: ns_info.endpoint,

0 commit comments

Comments
 (0)