Fixed #1573 - Update to cc510a6
- Cached file name with path extension UIWebView issue - for iOS 7 and above, remove the query from the url (prior to iOS 7 the behavior remains the same).
This commit is contained in:
parent
86fc47bf7b
commit
af7b587936
|
@ -58,7 +58,7 @@
|
|||
return self.cacheKeyFilter(url);
|
||||
}
|
||||
else {
|
||||
if (NSClassFromString(@"NSURLComponents")) {
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue