Skip to content

Commit

Permalink
fix: 修复上传删除包含中英文失败的问题
Browse files Browse the repository at this point in the history
fix #2
  • Loading branch information
lizhuangs committed Jun 23, 2019
1 parent 08999e0 commit 052708b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/octokit.ts
Expand Up @@ -236,16 +236,15 @@ export class Octo {
}

fileOptions = function (fileName) {
// ${encodeURI(options.path)}
return urlJoin(
return encodeURI(urlJoin(
this.baseUrl,
'repos',
this.owner,
this.repo,
'contents',
this.path,
fileName
)
))
}

parseUrl(fileName) {
Expand Down

0 comments on commit 052708b

Please sign in to comment.