Skip to content

Commit 2bee46a

Browse files
authored
Merge pull request #123 from tqc/patch-1
Don't url encode provider config
2 parents 6bcdb9b + c4414d7 commit 2bee46a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ios/OAuthManager/OAuthManager.m

+2-5
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,11 @@ - (BOOL) _configureProvider:(NSString *)providerName andConfig:(NSDictionary *)c
149149
if ([name rangeOfString:@"_url"].location != NSNotFound) {
150150
// This is a URL representation
151151
NSString *urlStr = [config valueForKey:name];
152-
NSURL *url = [NSURL URLWithString:[urlStr
153-
stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
152+
NSURL *url = [NSURL URLWithString:urlStr];
154153
[objectProps setObject:url forKey:name];
155154
} else {
156155
NSString *str = [NSString stringWithString:[config valueForKey:name]];
157-
NSString *escapedStr = [str
158-
stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLHostAllowedCharacterSet]];
159-
[objectProps setValue:[escapedStr copy] forKey:name];
156+
[objectProps setValue:str forKey:name];
160157
}
161158
}
162159

0 commit comments

Comments
 (0)