Skip to content

Commit

Permalink
use ShouldBindJSON not ShouldBind
Browse files Browse the repository at this point in the history
  • Loading branch information
UlricQin committed Mar 27, 2020
1 parent 14d1dec commit 4844803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/transfer/http/routes/push_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func PushData(c *gin.Context) {

recvMetricValues := []*dataobj.MetricValue{}
metricValues := []*dataobj.MetricValue{}
errors.Dangerous(c.ShouldBind(&recvMetricValues))
errors.Dangerous(c.ShouldBindJSON(&recvMetricValues))

var msg string
for _, v := range recvMetricValues {
Expand Down

0 comments on commit 4844803

Please sign in to comment.