From 50866d9f70b091841313818f6ca0a800aedabfd0 Mon Sep 17 00:00:00 2001 From: Will Norris Date: Tue, 11 Jun 2019 04:37:50 +0000 Subject: [PATCH] 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 --- cmd/imageproxy/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/imageproxy/main.go b/cmd/imageproxy/main.go index 4b10b24..a31d520 100644 --- a/cmd/imageproxy/main.go +++ b/cmd/imageproxy/main.go @@ -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 } }