Skip to content

Commit 90588bc

Browse files
committed
better+ error handling :)
1 parent 56a8f87 commit 90588bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/request/request.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func GetReqBody(w http.ResponseWriter, req *http.Request) (Body, error) {
107107
}
108108

109109
if len(bytes) <= 0 {
110-
return Body{Empty: true}, errors.New("request body is empty")
110+
return Body{Empty: true}, nil
111111
}
112112

113113
var data map[string]interface{}

0 commit comments

Comments
 (0)