This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
wangwei
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Fix metrics auth token detection (
#6006
)
Signed-off-by: Pauls Barkans <paulsb@gmail.com>
tags/v1.9.0-dev
Paul
techknowlogick
7 years ago
parent
118e546711
commit
34b446ad95
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
routers/metrics.go
+ 1
- 1
routers/metrics.go
View File
@@ -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
Write
Preview
Loading…
Cancel
Save