Update got/form-data to latest

This commit is contained in:
Fedor Indutny 2021-10-06 09:25:22 -07:00 committed by GitHub
parent fa66ddde0f
commit 1466f9f1b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 205 additions and 167 deletions

View file

@ -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`;