fix: unable to upload to local object storage

This commit is contained in:
anatawa12 2024-11-23 14:47:03 +09:00
parent 04b221409c
commit af3313e180
No known key found for this signature in database
GPG Key ID: 9CA909848B8E4EA6
1 changed files with 1 additions and 1 deletions

View File

@ -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;