Merge pull request #1584 from minsOne/master

fixed crash on ios7 user device
This commit is contained in:
Bogdan Poplauschi 2016-06-06 07:25:00 +03:00
commit d8dc6a25aa
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@
if (NSClassFromString(@"NSURLComponents") && [NSURLComponents instancesRespondToSelector:@selector(string)]) {
NSURLComponents *urlComponents = [[NSURLComponents alloc] initWithURL:url resolvingAgainstBaseURL:NO];
urlComponents.query = nil; // Strip out query parameters.
return urlComponents.string;
return [urlComponents.URL absoluteString];
} else {
return [url absoluteString];
}