Skip to content

Commit

Permalink
Merge branch 'master' of github.com:didi/nightingale
Browse files Browse the repository at this point in the history
  • Loading branch information
710leo committed Mar 27, 2020
2 parents 2f86831 + 4844803 commit 18e7201
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/collector/http/routes/api_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,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
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 18e7201

Please sign in to comment.