mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-12 08:23:48 +02:00
Merge pull request #2385 from tboerger/fix-token-name
Fixed wrong variable name
This commit is contained in:
commit
5d7260631e
@ -33,7 +33,7 @@ func PromHandler() gin.HandlerFunc {
|
|||||||
handler := promhttp.Handler()
|
handler := promhttp.Handler()
|
||||||
|
|
||||||
return func(c *gin.Context) {
|
return func(c *gin.Context) {
|
||||||
token := server.Config.Prometheus.Token
|
token := server.Config.Prometheus.AuthToken
|
||||||
|
|
||||||
if token == "" {
|
if token == "" {
|
||||||
handler.ServeHTTP(c.Writer, c.Request)
|
handler.ServeHTTP(c.Writer, c.Request)
|
||||||
|
Loading…
Reference in New Issue
Block a user