Skip to content

Commit

Permalink
quick fix for v1.0.16
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad Ryk committed Oct 1, 2019
1 parent 11f7e1a commit 8cc0505
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions helpers/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/finnan444/utils/transport/response"
"strconv"
"time"

"github.com/finnan444/utils/transport/response"

"github.com/finnan444/utils/transport"
"github.com/sirupsen/logrus"
"github.com/valyala/fasthttp"
Expand Down Expand Up @@ -72,7 +73,7 @@ func PreCheckNew(requestBody []byte, req *transport.KernelBaseRequest, token str
if err := json.Unmarshal(requestBody, reqBody); err != nil {
resp.Msg = "body not json"
resp.Code = fasthttp.StatusBadRequest
resp.Payload = logrus.Fields{"error": err, "body": string(ctx.Request.Body())}
resp.Payload = logrus.Fields{"error": err, "body": string(requestBody)}
return resp
}

Expand Down

0 comments on commit 8cc0505

Please sign in to comment.