Fix tilesets with mixed case id not loading

This commit is contained in:
Kristjan 2019-09-02 13:56:17 +02:00 committed by GitHub
parent 3e4b902935
commit b97143cc41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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