Permalink
Browse files

Fix for #154

  • Loading branch information...
1 parent 4d3917c commit 58f567ac1e63e86c1ae6f1b4c5c02c48d33547e2 @fiorix committed Jan 27, 2016
Showing with 4 additions and 1 deletion.
  1. +1 −1 apiserver/cmd.go
  2. +3 −0 apiserver/http.go
View
@@ -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"
View
@@ -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("")

0 comments on commit 58f567a

Please sign in to comment.