[Updater > Request] Don't try Electron net at all, just request

This commit is contained in:
Ducko 2022-01-14 13:50:31 +00:00
parent 675afd9e55
commit 425da3f128
1 changed files with 2 additions and 2 deletions

View File

@ -167,12 +167,12 @@ async function requestWithMethod(method, options) {
log('Request', method, options.url); log('Request', method, options.url);
try { /* try {
return await electronRequest(options); return await electronRequest(options);
} catch (err) { } catch (err) {
console.log(`Error downloading with electron net: ${err.message}`); console.log(`Error downloading with electron net: ${err.message}`);
console.log('Falling back to node net library..'); console.log('Falling back to node net library..');
} } */
return nodeRequest(options); return nodeRequest(options);
} // only supports get for now, since retrying is non-idempotent and } // only supports get for now, since retrying is non-idempotent and