mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 06:06:33 +08:00
Quick Ugly Fix for Oauth not to make web_hack.go panic (#49653)
This commit is contained in:
@ -42,7 +42,9 @@ func wrap_handler(h web.Handler) http.HandlerFunc {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
ctx := getReqCtx(r.Context())
|
||||
res := handle(ctx)
|
||||
res.WriteTo(ctx)
|
||||
if res != nil {
|
||||
res.WriteTo(ctx)
|
||||
}
|
||||
}
|
||||
case handlerCtx:
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
|
Reference in New Issue
Block a user