Skip to content

Commit

Permalink
missing slash for index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
evermeer committed Dec 4, 2015
1 parent 872f859 commit 443667f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion EVURLCache.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Pod::Spec.new do |s|
#

s.name = "EVURLCache"
s.version = "2.1.1"
s.version = "2.1.3"
s.summary = "NSURLCache subclass for handeling all web requests that use NSURLRequest"
s.description = "This is a NSURLCache subclass for handeling all web requests that use NSURLRequest. (This includes UIWebView)"
s.homepage = "https://github.com/evermeer/EVURLCache"
Expand Down
5 changes: 5 additions & 0 deletions EVURLCache/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>game.zorropk.com</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
<key>evict.nl</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
Expand Down
4 changes: 2 additions & 2 deletions EVURLCache/Pod/EVURLCache.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public class EVURLCache : NSURLCache {
public override func storeCachedResponse(cachedResponse: NSCachedURLResponse, forRequest request: NSURLRequest) {
if let httpResponse = cachedResponse.response as? NSHTTPURLResponse {
if httpResponse.statusCode >= 400 {
EVURLCache.debugLog("CACHE Do not cache error page for : \(request.URL)");
EVURLCache.debugLog("CACHE Do not cache error \(httpResponse.statusCode) page for : \(request.URL) \(httpResponse.debugDescription)");
return
}
}
Expand Down Expand Up @@ -189,7 +189,7 @@ public class EVURLCache : NSURLCache {
// Without an extension it's treated as a folder and the file will be called index.html
if let storageFile: String = localUrl.componentsSeparatedByString("/").last {
if !storageFile.containsString(".") {
localUrl = "/\(localUrl)index.html"
localUrl = "/\(localUrl)/index.html"
}
}

Expand Down

0 comments on commit 443667f

Please sign in to comment.