remove https detection
This commit is contained in:
parent
06dad54d4c
commit
b6d46d8b91
@ -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 })
|
||||||
// );
|
// );
|
||||||
|
|||||||
@ -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",
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user