diff --git a/lib/http-proxy/index.js b/lib/http-proxy/index.js index 977a4b362..8dfa44f11 100644 --- a/lib/http-proxy/index.js +++ b/lib/http-proxy/index.js @@ -47,7 +47,7 @@ function createRightProxy(type) { args[cntr] !== res ) { //Copy global options - requestOptions = extend({}, options); + requestOptions = Object.assign({}, options); //Overwrite with request options extend(requestOptions, args[cntr]);