fix(core): update

This commit is contained in:
Philipp Kunz 2019-09-08 18:00:48 +02:00
parent 36f2707141
commit dffabd905f

View File

@ -130,13 +130,13 @@ export let request = async (
case parsedUrl.protocol === 'https:' && optionsArg.keepAlive:
optionsArg.agent = httpsAgent;
return plugins.https;
case parsedUrl.protocol === 'https:' && !optionsArg.keepAlive:
case parsedUrl.protocol === 'https:' && (!optionsArg.keepAlive):
optionsArg.agent = httpsAgentKeepAliveFalse;
return plugins.https;
case parsedUrl.protocol === 'http:' && optionsArg.keepAlive:
optionsArg.agent = httpAgent;
return plugins.http;
case parsedUrl.protocol === 'http:' && !optionsArg.keepAlive:
case parsedUrl.protocol === 'http:' && (!optionsArg.keepAlive):
optionsArg.agent = httpAgentKeepAliveFalse;
return plugins.http;
}