This commit is contained in:
Clement 2019-08-08 13:49:15 -07:00
parent b2704da9ef
commit 29d017bb65

View file

@ -39,10 +39,11 @@ module.exports = {
if (error) {
response = { statusCode: httpRequest.status };
}
callback(error, response, optionalCallbackParameter);
// Break circular reference to httpRequest so the engine can garbage collect it.
httpRequest.onreadystatechange = null;
callback(error, response, optionalCallbackParameter);
}
};
if (typeof options === 'string') {