Make sure we strip trailing slashes for dir listing
This commit is contained in:
parent
1acdb8ddf5
commit
bf6eb2f39a
@ -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 => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user