mirror of
https://github.com/willnorris/imageproxy.git
synced 2024-12-16 21:56:43 -05:00
default to using cache value as provided
when parsing cache values, if the values doesn't match a recognized URL pattern, we treat it as a filepath for an on-disk cache. However, this doesn't appear to be working on Windows. I don't have easy access to a Windows box to test this on, but I *think* this should fix it. Refs #181
This commit is contained in:
parent
d4ba5205ff
commit
50866d9f70
1 changed files with 2 additions and 2 deletions
|
@ -168,9 +168,9 @@ func parseCache(c string) (imageproxy.Cache, error) {
|
|||
case "s3":
|
||||
return s3cache.New(u.String())
|
||||
case "file":
|
||||
fallthrough
|
||||
default:
|
||||
return diskCache(u.Path), nil
|
||||
default:
|
||||
return diskCache(c), nil
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue