0
Fork 0
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:
Will Norris 2019-06-11 04:37:50 +00:00
parent d4ba5205ff
commit 50866d9f70

View file

@ -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
}
}