diff options
| author | Horus3 | 2015-08-02 00:16:24 +0200 |
|---|---|---|
| committer | Horus3 | 2015-08-02 00:16:24 +0200 |
| commit | 4e1f9ae3e7864e791d6df2c215ca70bd1e42eaf6 (patch) | |
| tree | 604ce9614a40875b5d21a367c3ef9ab175520c88 /imagestore/localstore.go | |
| parent | 6afcbc7ba57d80bacace21b6e73ca474dd8217ca (diff) | |
| download | mandible-4e1f9ae3e7864e791d6df2c215ca70bd1e42eaf6.tar.gz | |
Added multidomain support.
Diffstat (limited to 'imagestore/localstore.go')
| -rw-r--r-- | imagestore/localstore.go | 4 |
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 } |
