remove https detection

This commit is contained in:
fyears 2024-05-27 00:35:55 +08:00
parent 06dad54d4c
commit b6d46d8b91
2 changed files with 0 additions and 13 deletions

View File

@ -780,13 +780,6 @@ export class FakeFsS3 extends FakeFs {
async checkConnect(callbackFunc?: any): Promise<boolean> { async checkConnect(callbackFunc?: any): Promise<boolean> {
try { 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( // const results = await this.s3Client.send(
// new HeadBucketCommand({ Bucket: this.s3Config.s3BucketName }) // new HeadBucketCommand({ Bucket: this.s3Config.s3BucketName })
// ); // );

View File

@ -246,12 +246,6 @@ export class FakeFsWebdav extends FakeFs {
return; 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 = { const headers = {
"Cache-Control": "no-cache", "Cache-Control": "no-cache",
}; };