Skip to content

Commit

Permalink
Fix for #154
Browse files Browse the repository at this point in the history
  • Loading branch information
fiorix committed Jan 27, 2016
1 parent 4d3917c commit 58f567a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apiserver/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
)

// Version tag.
var Version = "3.0.10"
var Version = "3.0.11"

var maxmindDB = "http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz"

Expand Down
3 changes: 3 additions & 0 deletions apiserver/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ func (ah *apiHandler) prefix(p string) string {
}

func (ah *apiHandler) RegisterPublicDir(mux *http.ServeMux) {
if ah.conf.PublicDir == "" {
return
}
fs := http.FileServer(http.Dir(ah.conf.PublicDir))
fs = prometheus.InstrumentHandler("frontend", fs)
prefix := ah.prefix("")
Expand Down

0 comments on commit 58f567a

Please sign in to comment.