From 9db4b7fdfb13035f915bd9c130d1d59da6e0639b Mon Sep 17 00:00:00 2001 From: Austin Cherry Date: Thu, 24 Jan 2019 14:42:13 -0600 Subject: [PATCH] AUTH-1337: fix url path --- cmd/cloudflared/transfer/transfer.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/cloudflared/transfer/transfer.go b/cmd/cloudflared/transfer/transfer.go index 0f522b72..3e3a4d5f 100644 --- a/cmd/cloudflared/transfer/transfer.go +++ b/cmd/cloudflared/transfer/transfer.go @@ -10,7 +10,6 @@ import ( "net/http" "net/url" "os" - "path/filepath" "time" "github.com/cloudflare/cloudflared/cmd/cloudflared/encrypter" @@ -52,7 +51,7 @@ func Run(transferURL *url.URL, resourceName, key, value, path string, shouldEncr var resourceData []byte if shouldEncrypt { - buf, key, err := transferRequest(baseStoreURL + filepath.Join("transfer", encrypterClient.PublicKey())) + buf, key, err := transferRequest(baseStoreURL + "transfer/" + encrypterClient.PublicKey()) if err != nil { return nil, err } @@ -68,7 +67,7 @@ func Run(transferURL *url.URL, resourceName, key, value, path string, shouldEncr resourceData = decrypted } else { - buf, _, err := transferRequest(baseStoreURL + filepath.Join(encrypterClient.PublicKey())) + buf, _, err := transferRequest(baseStoreURL + encrypterClient.PublicKey()) if err != nil { return nil, err }