Skip to content

Commit

Permalink
fix: url.RawFragment does not work in go1.14
Browse files Browse the repository at this point in the history
I don't think we need to worry about #hash, so just removed it
  • Loading branch information
lidel committed Dec 15, 2020
1 parent 2ffdce5 commit 253d794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/commands/pin/remotepin.go
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,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")
}

Expand Down

0 comments on commit 253d794

Please sign in to comment.