[Updater > Request] Don't try Electron net at all, just request
This commit is contained in:
parent
675afd9e55
commit
425da3f128
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue