diff --git a/lib/http-proxy/common.js b/lib/http-proxy/common.js index 6513e81d8..0555e80e2 100644 --- a/lib/http-proxy/common.js +++ b/lib/http-proxy/common.js @@ -1,6 +1,6 @@ var common = exports, url = require('url'), - extend = require('util')._extend, + extend = Object.assign, required = require('requires-port'); var upgradeHeader = /(^|,)\s*upgrade\s*($|,)/i, diff --git a/lib/http-proxy/index.js b/lib/http-proxy/index.js index 977a4b362..739409c0d 100644 --- a/lib/http-proxy/index.js +++ b/lib/http-proxy/index.js @@ -1,5 +1,5 @@ var httpProxy = module.exports, - extend = require('util')._extend, + extend = Object.assign, parse_url = require('url').parse, EE3 = require('eventemitter3'), http = require('http'), diff --git a/package.json b/package.json index 9fe81a26d..9edd4a32a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "http-proxy", - "version": "1.18.1", + "version": "1.18.2", "repository": { "type": "git", "url": "https://github.com/http-party/node-http-proxy.git"