Macaron: remove custom Request type (#37874)
* remove macaron.Request, use http.Request instead * remove com dependency from bindings module * fix another c.Req.Request
This commit is contained in:
@@ -457,7 +457,7 @@ func (hs *HTTPServer) metricsEndpoint(ctx *macaron.Context) {
|
||||
|
||||
promhttp.
|
||||
HandlerFor(prometheus.DefaultGatherer, promhttp.HandlerOpts{EnableOpenMetrics: true}).
|
||||
ServeHTTP(ctx.Resp, ctx.Req.Request)
|
||||
ServeHTTP(ctx.Resp, ctx.Req)
|
||||
}
|
||||
|
||||
// healthzHandler always return 200 - Ok if Grafana's web server is running
|
||||
|
||||
Reference in New Issue
Block a user