mirror of https://github.com/gin-gonic/gin.git
debug: fix indent of routes dump for DELETE method
'DELETE' is 6 chars and breaks indent of the routes dump (only 5 chars were reserved for the HTTP method).
This commit is contained in:
parent
fe49f0b616
commit
90911f53f2
2
debug.go
2
debug.go
|
@ -24,7 +24,7 @@ func debugPrintRoute(httpMethod, absolutePath string, handlers HandlersChain) {
|
|||
if IsDebugging() {
|
||||
nuHandlers := len(handlers)
|
||||
handlerName := nameOfFunction(handlers.Last())
|
||||
debugPrint("%-5s %-25s --> %s (%d handlers)\n", httpMethod, absolutePath, handlerName, nuHandlers)
|
||||
debugPrint("%-6s %-25s --> %s (%d handlers)\n", httpMethod, absolutePath, handlerName, nuHandlers)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue