From b6d46d8b91861b16e56640cd0a00260d77e8c57f Mon Sep 17 00:00:00 2001 From: fyears <1142836+fyears@users.noreply.github.com> Date: Mon, 27 May 2024 00:35:55 +0800 Subject: [PATCH] remove https detection --- src/fsS3.ts | 7 ------- src/fsWebdav.ts | 6 ------ 2 files changed, 13 deletions(-) diff --git a/src/fsS3.ts b/src/fsS3.ts index c21ab53..cf96071 100644 --- a/src/fsS3.ts +++ b/src/fsS3.ts @@ -780,13 +780,6 @@ export class FakeFsS3 extends FakeFs { async checkConnect(callbackFunc?: any): Promise { try { - // TODO: no universal way now, just check this in connectivity - if (Platform.isIosApp && this.s3Config.s3Endpoint.startsWith("http://")) { - throw Error( - `Your s3 endpoint could only be https, not http, because of the iOS restriction.` - ); - } - // const results = await this.s3Client.send( // new HeadBucketCommand({ Bucket: this.s3Config.s3BucketName }) // ); diff --git a/src/fsWebdav.ts b/src/fsWebdav.ts index 345f0cf..d62f425 100644 --- a/src/fsWebdav.ts +++ b/src/fsWebdav.ts @@ -246,12 +246,6 @@ export class FakeFsWebdav extends FakeFs { return; } - if (Platform.isIosApp && !this.webdavConfig.address.startsWith("https")) { - throw Error( - `Your webdav address could only be https, not http, because of the iOS restriction.` - ); - } - const headers = { "Cache-Control": "no-cache", };