1
0
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:
Brad Rydzewski 2018-03-27 15:54:30 -07:00 committed by GitHub
commit 5d7260631e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ func PromHandler() gin.HandlerFunc {
handler := promhttp.Handler()
return func(c *gin.Context) {
token := server.Config.Prometheus.Token
token := server.Config.Prometheus.AuthToken
if token == "" {
handler.ServeHTTP(c.Writer, c.Request)