Skip to content

Commit

Permalink
Fix for Windows users
Browse files Browse the repository at this point in the history
Closes #152.
  • Loading branch information
fiorix committed Dec 5, 2015
1 parent 18511d4 commit 33667ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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.8"
var Version = "3.0.9"

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

Expand Down
6 changes: 3 additions & 3 deletions apiserver/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package apiserver
import (
"net"
"net/http"
"path/filepath"
"path"

"github.com/fiorix/freegeoip"
"github.com/prometheus/client_golang/prometheus"
Expand Down Expand Up @@ -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 += "/"
}
Expand Down

0 comments on commit 33667ef

Please sign in to comment.