mirror of
https://gitcode.com/github-mirrors/react-native-update-cli.git
synced 2025-09-16 01:41:37 +08:00
Add token when upload
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user