mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 11:32:25 +08:00
middleware: recovery handles panics in all handlers
Also, changes the order of the middleware so that recovery is after the gzip middleware. Otherwise, a 200 OK is returned instead of a 500 error.
This commit is contained in:
@ -363,6 +363,7 @@ type scenarioContext struct {
|
||||
respJson map[string]interface{}
|
||||
handlerFunc handlerFunc
|
||||
defaultHandler macaron.Handler
|
||||
url string
|
||||
|
||||
req *http.Request
|
||||
}
|
||||
|
Reference in New Issue
Block a user