This commit is contained in:
Molunerfinn
2018-05-26 23:23:27 +08:00
parent f8eceae8e4
commit d78de75c18
3 changed files with 5 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ const postOptions = (fileName, options, data) => {
const {token, repo} = options
return {
method: 'PUT',
url: `https://api.github.com/repos/${repo}/contents/${path}${encodeURI(fileName)}`,
url: `https://api.github.com/repos/${repo}/contents/${encodeURI(path)}${encodeURI(fileName)}`,
headers: {
Authorization: `token ${token}`,
'User-Agent': 'PicGo'