This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
gitea
Watch
3
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Fix metrics auth token detection (
#6006
)
Signed-off-by: Pauls Barkans <paulsb@gmail.com>
for-closed-social
Paul
5 years ago
committed by
techknowlogick
parent
11a9ce6a2b
commit
8c865f3ce8
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