Skip to content

Commit

Permalink
fix(storage, ios): remove '443' port from iOS download URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehardy committed Sep 22, 2023
1 parent 6f77c19 commit 5c687a8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/storage/ios/RNFBStorage/RNFBStorageModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,14 @@ - (void)invalidate {
if (error != nil) {
[self promiseRejectStorageException:reject error:error];
} else {
resolve([URL absoluteString]);
NSString *url = URL.absoluteString;

if ([url rangeOfString:@":443"].location != NSNotFound) {
NSRange replaceRange = [url rangeOfString:@":443"];
url = [url stringByReplacingCharactersInRange:replaceRange withString:@""];
}

resolve(url);
}
}];
}
Expand Down

0 comments on commit 5c687a8

Please sign in to comment.