mirror of
https://github.com/consbio/mbtileserver.git
synced 2024-09-11 07:15:24 +03:00
Fix tilesets with mixed case id not loading
This commit is contained in:
parent
3e4b902935
commit
b97143cc41
@ -197,7 +197,7 @@ func NewFromBaseDir(baseDir string, secretKey string) (*ServiceSet, error) {
|
||||
}
|
||||
e := filepath.Ext(filename)
|
||||
p := filepath.ToSlash(subpath)
|
||||
id := strings.ToLower(p[:len(p)-len(e)])
|
||||
id := p[:len(p)-len(e)]
|
||||
err = s.AddDBOnPath(filename, id)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Loading…
Reference in New Issue
Block a user