Merge pull request #24 from ncw/trim-metadata
Remove extra / in Metadata request
This commit is contained in:
commit
58f839b210
|
@ -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
|
||||||
|
|
Reference in New Issue
Block a user