commands/http: Get string representations of option values when creating querystring

This commit is contained in:
Matt Bell 2014-11-12 00:55:04 -08:00 committed by Juan Batiz-Benet
parent 49792b2362
commit a4e68c241b

View File

@ -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)
}