commands/http: Get string representations of option values when creating querystring
Matt Bell committed
Nov 12, 2014 at 00:55 UTC
a4e68c241bdb7367b4b9e4ed7ee4c5d9f7927c9d
1 file changed
+1
-4
commands/http/client.go
+1
-4
@@ -66,10 +66,7 @@ func getQuery(req cmds.Request) (string, io.Reader, error) {
66
67
query := url.Values{}
68
for k, v := range req.Options() {
69
- str, ok := v.(string)
70
- if !ok {
71
- return "", nil, u.ErrCast()
72
- }
69
+ str := fmt.Sprintf("%v", v)
70
query.Set(k, str)
71
}
72