mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Remove replacing spaces with %20 when encoding URL params
This appears to be handled by stringByAddingPercentEscapesUsingEncoding and so explicitly doing it causes a space to be encoded to %2520 instead of %20
This commit is contained in:
@@ -90,7 +90,6 @@
|
||||
}
|
||||
|
||||
- (NSString *)encodeUrlParam:(NSString *)param {
|
||||
param = [param stringByReplacingOccurrencesOfString:@" " withString:@"%20"];
|
||||
param = [param stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
|
||||
param = [param stringByReplacingOccurrencesOfString:@"&" withString:@"%26"];
|
||||
return param;
|
||||
|
||||
Reference in New Issue
Block a user