Reorganize variables/funcs/type declarations, fix unnecessary Sprintf, move type def to types.go

This commit is contained in:
2023-12-12 04:16:18 -06:00
parent cc2536ab99
commit 29b8477e7a
3 changed files with 16 additions and 21 deletions

View File

@@ -24,7 +24,7 @@ func DebugRequest(req *http.Request) string {
str += fmt.Sprintf("\n\n {error while reading request body buffer: %s}", err)
} else {
if len(body) == 0 {
str += fmt.Sprintf("\n\n{empty body}")
str += "\n\n{empty body}"
} else {
str += fmt.Sprintf("\n\n%s", body)
}