fix s3 detect http

This commit is contained in:
fyears 2024-03-30 15:18:14 +08:00
parent 222f386586
commit 593fd7471b
1 changed files with 1 additions and 1 deletions

View File

@ -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.`
);