aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--routers/metrics.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/metrics.go b/routers/metrics.go
index e70918f068..78abd4a785 100644
--- a/routers/metrics.go
+++ b/routers/metrics.go
@@ -17,7 +17,7 @@ func Metrics(ctx *context.Context) {
promhttp.Handler().ServeHTTP(ctx.Resp, ctx.Req.Request)
return
}
- header := ctx.Header().Get("Authorization")
+ header := ctx.Req.Header.Get("Authorization")
if header == "" {
ctx.Error(401)
return