From 7313a45bc7e58c8880bc0350acc5a5d909474030 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Tue, 15 Dec 2020 22:22:24 +0100 Subject: [PATCH] fix: url.RawFragment does not work in go1.14 I don't think we need to worry about #hash, so just removed it --- core/commands/pin/remotepin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/commands/pin/remotepin.go b/core/commands/pin/remotepin.go index b29860a3f..5abbc7fb6 100644 --- a/core/commands/pin/remotepin.go +++ b/core/commands/pin/remotepin.go @@ -752,7 +752,7 @@ func normalizeEndpoint(endpoint string) (string, error) { uri.Path = strings.TrimSuffix(uri.Path, "/") // remove any query params - if uri.RawQuery != "" || uri.RawFragment != "" { + if uri.RawQuery != "" { return "", fmt.Errorf("service endpoint should be provided without any query parameters") } -- GitLab