Skip to content

Commit dd56623

Browse files
authored
fix: unable to upload to local object storage (#15040)
1 parent a0e91b5 commit dd56623

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/backend/src/core/S3Service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class S3Service {
2828
? `${meta.objectStorageUseSSL ? 'https' : 'http'}://${meta.objectStorageEndpoint}`
2929
: `${meta.objectStorageUseSSL ? 'https' : 'http'}://example.net`; // dummy url to select http(s) agent
3030

31-
const agent = this.httpRequestService.getAgentByUrl(new URL(u), !meta.objectStorageUseProxy);
31+
const agent = this.httpRequestService.getAgentByUrl(new URL(u), !meta.objectStorageUseProxy, true);
3232
const handlerOption: NodeHttpHandlerOptions = {};
3333
if (meta.objectStorageUseSSL) {
3434
handlerOption.httpsAgent = agent as https.Agent;

0 commit comments

Comments
 (0)