Macaron cleanup (#37795)

* simplify some dependency injection in macaron
* remove unused internal server error handler from macaron
* remove internal server error handler from the router
* remove unused combo router api
* remove unused parts of the macaron router
This commit is contained in:
Serge Zaitsev
2021-08-30 11:48:34 +02:00
committed by GitHub
parent 74afe809af
commit d15cbe4b4e
9 changed files with 38 additions and 235 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ func defaultReturnHandler() ReturnHandler {
if isError(respVal) {
err := respVal.Interface().(error)
if err != nil {
ctx.internalServerError(ctx, err)
http.Error(resp, err.Error(), 500)
}
return
} else if canDeref(respVal) {