Permalink
Browse files

Fix for Windows users

Closes #152.
  • Loading branch information...
1 parent 18511d4 commit 33667ef6e5f7d01a9a3e431e2b4745db887852b2 @fiorix committed Dec 5, 2015
Showing with 4 additions and 4 deletions.
  1. +1 −1 apiserver/cmd.go
  2. +3 −3 apiserver/http.go
View
@@ -24,7 +24,7 @@ import (
)
// Version tag.
-var Version = "3.0.8"
+var Version = "3.0.9"
var maxmindDB = "http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz"
View
@@ -7,7 +7,7 @@ package apiserver
import (
"net"
"net/http"
- "path/filepath"
+ "path"
"github.com/fiorix/freegeoip"
"github.com/prometheus/client_golang/prometheus"
@@ -54,8 +54,8 @@ type apiHandler struct {
conf *HandlerConfig
}
-func (ah *apiHandler) prefix(path string) string {
- p := filepath.Clean(filepath.Join("/", ah.conf.Prefix, path))
+func (ah *apiHandler) prefix(p string) string {
+ p = path.Clean(path.Join("/", ah.conf.Prefix, p))
if p[len(p)-1] != '/' {
p += "/"
}

0 comments on commit 33667ef

Please sign in to comment.