fix s3 detect http

This commit is contained in:
fyears 2024-03-30 15:18:14 +08:00
parent 222f386586
commit 593fd7471b

View File

@ -779,7 +779,7 @@ export const checkConnectivity = async (
) => { ) => {
try { try {
// TODO: no universal way now, just check this in connectivity // 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( throw Error(
`Your s3 endpoint could only be https, not http, because of the iOS restriction.` `Your s3 endpoint could only be https, not http, because of the iOS restriction.`
); );