You've already forked hotpocket
BTHLABS-58: Fixing URL paths resolution to avoid double slashes
This commit is contained in:
@@ -96,7 +96,8 @@
|
||||
return NO;
|
||||
}
|
||||
|
||||
NSURLComponents *urlComponents = [NSURLComponents componentsWithURL:[self.baseURL URLByAppendingPathComponent:endpoint] resolvingAgainstBaseURL:NO];
|
||||
NSURLComponents *urlComponents = [NSURLComponents componentsWithURL:self.baseURL resolvingAgainstBaseURL:NO];
|
||||
urlComponents.path = endpoint;
|
||||
urlComponents.queryItems = @[
|
||||
[NSURLQueryItem queryItemWithName:@"method" value:method],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user