We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0b574f commit 7f7c451Copy full SHA for 7f7c451
routers/metrics.go
@@ -17,7 +17,7 @@ func Metrics(ctx *context.Context) {
17
promhttp.Handler().ServeHTTP(ctx.Resp, ctx.Req.Request)
18
return
19
}
20
- header := ctx.Header().Get("Authorization")
+ header := ctx.Req.Header.Get("Authorization")
21
if header == "" {
22
ctx.Error(401)
23
0 commit comments