Backport of #6006 Signed-off-by: Pauls Barkans <paulsb@gmail.com>
This commit is contained in:
parent
b0b574f805
commit
7f7c451de4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Reference in a new issue