1
0
mirror of https://gitcode.com/github-mirrors/react-native-update-cli.git synced 2025-09-16 01:41:37 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Add token when upload

This commit is contained in:
sunnylqm
2020-10-18 12:16:15 +08:00
parent 6cb38eeec1
commit 57ddfc5d7d

View File

@@ -147,6 +147,10 @@ async function uploadFile(fn, key) {
realUrl,
{
formData,
headers: {
'User-Agent': userAgent,
'X-AccessToken': session ? session.token : '',
},
},
(err, resp, body) => {
if (err) {