Skip to content

Commit 3c5dde4

Browse files
anatawa12kakkokari-gtyih
authored andcommitted
fix: unable to upload to local object storage (misskey-dev#15040)
1 parent b91d393 commit 3c5dde4

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)