Merge pull request #3384 from keithballdotnet/patch-1

[Go] ParameterToString can panic
This commit is contained in:
wing328
2016-07-18 22:17:12 +08:00
committed by GitHub

View File

@@ -94,7 +94,7 @@ func (c *APIClient) ParameterToString(obj interface{},collectionFormat string) s
}
}
return obj.(string)
return fmt.Sprintf("%v", obj)
}
func prepareRequest(postBody interface{},