From f4ca709d706e3da15b4899884b6ee5839a0839f4 Mon Sep 17 00:00:00 2001 From: Sylvain Baubeau Date: Thu, 2 Jul 2015 11:02:47 +0200 Subject: [PATCH] Use file instead of filepath as it may cause troubles on Windows Signed-off-by: Sylvain Baubeau --- registry/storage/driver/swift/swift.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/registry/storage/driver/swift/swift.go b/registry/storage/driver/swift/swift.go index 9570244a7..300090573 100644 --- a/registry/storage/driver/swift/swift.go +++ b/registry/storage/driver/swift/swift.go @@ -27,7 +27,6 @@ import ( "io/ioutil" "net/http" gopath "path" - "path/filepath" "strconv" "strings" "time" @@ -550,7 +549,7 @@ func (d *driver) createManifest(path string) (*swift.ObjectCreateFile, error) { } func detectBulkDelete(authURL string) (bulkDelete bool) { - resp, err := http.Get(filepath.Join(authURL, "..", "..") + "/info") + resp, err := http.Get(gopath.Join(authURL, "..", "..") + "/info") if err == nil { defer resp.Body.Close() decoder := json.NewDecoder(resp.Body)