Make sure we strip trailing slashes for dir listing

This commit is contained in:
Mathias Biilmann 2017-11-13 17:59:18 -08:00 committed by Shawn Erquhart
parent 1acdb8ddf5
commit bf6eb2f39a

View File

@ -169,7 +169,7 @@ export default class API {
}
listFiles(path) {
return this.request(`${ this.repoURL }/contents/${ path }`, {
return this.request(`${ this.repoURL }/contents/${ path.replace(/\/$/, '') }`, {
params: { ref: this.branch },
})
.then(files => {