mirror of
https://github.com/Xevion/r2park.git
synced 2025-12-06 01:15:57 -06:00
Reorganize variables/funcs/type declarations, fix unnecessary Sprintf, move type def to types.go
This commit is contained in:
2
debug.go
2
debug.go
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user