We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c65d4d commit 2ba760bCopy full SHA for 2ba760b
lib/server/server.go
@@ -76,11 +76,10 @@ func StartServer(opt Options) error {
76
return
77
}
78
body := make(map[string]interface{})
79
- var rawBody interface{}
+ rawBody := fmt.Sprintf("%s", bodyBytes)
80
if len(bodyBytes) > 0 {
81
err = json.Unmarshal(bodyBytes, &body)
82
if err != nil {
83
- rawBody = fmt.Sprintf("%s", bodyBytes)
84
log.Println(err)
85
86
0 commit comments