Skip to content

Commit

Permalink
fix: unable to upload to local object storage (#15040)
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 authored Nov 24, 2024
1 parent a0e91b5 commit dd56623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/core/S3Service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class S3Service {
? `${meta.objectStorageUseSSL ? 'https' : 'http'}://${meta.objectStorageEndpoint}`
: `${meta.objectStorageUseSSL ? 'https' : 'http'}://example.net`; // dummy url to select http(s) agent

const agent = this.httpRequestService.getAgentByUrl(new URL(u), !meta.objectStorageUseProxy);
const agent = this.httpRequestService.getAgentByUrl(new URL(u), !meta.objectStorageUseProxy, true);
const handlerOption: NodeHttpHandlerOptions = {};
if (meta.objectStorageUseSSL) {
handlerOption.httpsAgent = agent as https.Agent;
Expand Down

0 comments on commit dd56623

Please sign in to comment.