fix(core): update

This commit is contained in:
Philipp Kunz 2020-09-29 15:20:40 +00:00
parent 19a1fe1524
commit f0fa91e2db

View File

@ -137,6 +137,11 @@ export let request = async (
} }
})() as typeof plugins.https; })() as typeof plugins.https;
if (!requestModule) {
console.error(`The request to ${domainArg} is missing a viable protocol. Must be http or https`);
return;
}
// lets perform the actual request // lets perform the actual request
const requestToFire = requestModule.request(optionsArg, async (response) => { const requestToFire = requestModule.request(optionsArg, async (response) => {
if (responseStreamArg) { if (responseStreamArg) {