Skip to content

Commit c84f17c

Browse files
committed
Fixed Google Auth
1 parent f659ed4 commit c84f17c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ios/OAuthManager/OAuthManager.m

+6-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,12 @@ - (void) removePending:(OAuthClient *) client
317317

318318
- (NSString *) stringHost:(NSURL *)url
319319
{
320-
NSString *str = [NSString stringWithFormat:@"%@://%@%@", url.scheme, url.host, url.path];
320+
NSString *str;
321+
if (url.host != nil) {
322+
str = [NSString stringWithFormat:@"%@://%@%@", url.scheme, url.host, url.path];
323+
} else {
324+
str = [NSString stringWithFormat:@"%@%@", url.scheme, url.path];
325+
}
321326

322327
if ([str hasSuffix:@"/"]) {
323328
str = [str substringToIndex:str.length - 1];

0 commit comments

Comments
 (0)