mirror of
https://github.com/consbio/mbtileserver.git
synced 2024-10-26 07:51:06 +03:00
Merge pull request #77 from Krizz/master
Fix tiles with mixed case not loading
This commit is contained in:
commit
d0770d9edb
@ -197,7 +197,7 @@ func NewFromBaseDir(baseDir string, secretKey string) (*ServiceSet, error) {
|
|||||||
}
|
}
|
||||||
e := filepath.Ext(filename)
|
e := filepath.Ext(filename)
|
||||||
p := filepath.ToSlash(subpath)
|
p := filepath.ToSlash(subpath)
|
||||||
id := strings.ToLower(p[:len(p)-len(e)])
|
id := p[:len(p)-len(e)]
|
||||||
err = s.AddDBOnPath(filename, id)
|
err = s.AddDBOnPath(filename, id)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
Reference in New Issue
Block a user