agent-base
Advanced tools
Comparing version 4.1.1 to 4.1.2
4.1.2 / 2017-11-20 | ||
================== | ||
* test Node 9 on Travis | ||
* ensure that `https.get()` uses the patched `https.request()` | ||
4.1.1 / 2017-07-20 | ||
@@ -3,0 +9,0 @@ ================== |
{ | ||
"name": "agent-base", | ||
"version": "4.1.1", | ||
"version": "4.1.2", | ||
"description": "Turn a function into an `http.Agent` instance", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -27,1 +27,13 @@ 'use strict'; | ||
})(https.request); | ||
/** | ||
* This is needed for Node.js >= 9.0.0 to make sure `https.get()` uses the | ||
* patched `https.request()`. | ||
* | ||
* Ref: https://github.com/nodejs/node/commit/5118f31 | ||
*/ | ||
https.get = function(options, cb) { | ||
const req = https.request(options, cb); | ||
req.end(); | ||
return req; | ||
}; |
Sorry, the diff of this file is not supported yet
31868
733
9