Update got/form-data to latest
This commit is contained in:
parent
fa66ddde0f
commit
1466f9f1b2
9 changed files with 205 additions and 167 deletions
|
@ -55,7 +55,7 @@ export const upload = async (
|
|||
): Promise<string> => {
|
||||
const headers = { 'User-Agent': getUserAgent(appVersion) };
|
||||
|
||||
const signedForm = await got.get(BASE_URL, { json: true, headers });
|
||||
const signedForm = await got.get(BASE_URL, { responseType: 'json', headers });
|
||||
const { fields, url } = parseTokenBody(signedForm.body);
|
||||
|
||||
const uploadKey = `${fields.key}.gz`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue