From 593fd7471b1893c6b0a65e746fe3b2a301c26324 Mon Sep 17 00:00:00 2001 From: fyears <1142836+fyears@users.noreply.github.com> Date: Sat, 30 Mar 2024 15:18:14 +0800 Subject: [PATCH] fix s3 detect http --- src/remoteForS3.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remoteForS3.ts b/src/remoteForS3.ts index 2be87c9..2a07c81 100644 --- a/src/remoteForS3.ts +++ b/src/remoteForS3.ts @@ -779,7 +779,7 @@ export const checkConnectivity = async ( ) => { try { // TODO: no universal way now, just check this in connectivity - if (Platform.isIosApp && !s3Config.s3Endpoint.startsWith("https")) { + if (Platform.isIosApp && s3Config.s3Endpoint.startsWith("http://")) { throw Error( `Your s3 endpoint could only be https, not http, because of the iOS restriction.` );