Merge pull request #77 from Krizz/master

Fix tiles with mixed case not loading
This commit is contained in:
Brendan Ward 2019-09-02 09:31:13 -07:00 committed by GitHub
commit d0770d9edb
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) 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