summaryrefslogtreecommitdiff
path: root/imagestore/localstore.go
diff options
context:
space:
mode:
Diffstat (limited to 'imagestore/localstore.go')
-rw-r--r--imagestore/localstore.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/imagestore/localstore.go b/imagestore/localstore.go
index 4df2931..707503d 100644
--- a/imagestore/localstore.go
+++ b/imagestore/localstore.go
@@ -27,7 +27,7 @@ func (this *LocalImageStore) Exists(obj *StoreObject) (bool, error) {
return true, nil
}
-func (this *LocalImageStore) Save(src string, obj *StoreObject) (*StoreObject, error) {
+func (this *LocalImageStore) Save(src string, obj *StoreObject, responseUrl string) (*StoreObject, error) {
// open input file
fi, err := os.Open(src)
if err != nil {
@@ -75,7 +75,7 @@ func (this *LocalImageStore) Save(src string, obj *StoreObject) (*StoreObject, e
}
obj.Url = this.toPath(obj)
- obj.Url = stripPath(obj.Url)
+ obj.Url = stripPath(obj.Url, responseUrl)
return obj, nil
}