diff --git a/commands/http/client.go b/commands/http/client.go index df8e0cfd2..a4dca5f0a 100644 --- a/commands/http/client.go +++ b/commands/http/client.go @@ -66,10 +66,7 @@ func getQuery(req cmds.Request) (string, io.Reader, error) { query := url.Values{} for k, v := range req.Options() { - str, ok := v.(string) - if !ok { - return "", nil, u.ErrCast() - } + str := fmt.Sprintf("%v", v) query.Set(k, str) }