Skip to content

Commit 2ba760b

Browse files
committed
added more definition matchings
1 parent 6c65d4d commit 2ba760b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/server/server.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,10 @@ func StartServer(opt Options) error {
7676
return
7777
}
7878
body := make(map[string]interface{})
79-
var rawBody interface{}
79+
rawBody := fmt.Sprintf("%s", bodyBytes)
8080
if len(bodyBytes) > 0 {
8181
err = json.Unmarshal(bodyBytes, &body)
8282
if err != nil {
83-
rawBody = fmt.Sprintf("%s", bodyBytes)
8483
log.Println(err)
8584
}
8685
}

0 commit comments

Comments
 (0)