Archived
1
0

Merge pull request #24 from ncw/trim-metadata

Remove extra / in Metadata request
This commit is contained in:
Arnaud Ysmal 2016-04-24 14:40:17 +02:00
commit 58f839b210

View File

@ -832,6 +832,7 @@ func (db *Dropbox) Metadata(src string, list bool, includeDeleted bool, hash, re
params.Set("hash", hash) params.Set("hash", hash)
} }
src = strings.Trim(src, "/")
act := strings.Join([]string{"metadata", db.RootDirectory, src}, "/") act := strings.Join([]string{"metadata", db.RootDirectory, src}, "/")
err := db.doRequest("GET", act, params, &rv) err := db.doRequest("GET", act, params, &rv)
return &rv, err return &rv, err