diff --git a/lib/index.js b/lib/index.js index 9c40ff60..a413d92e 100644 --- a/lib/index.js +++ b/lib/index.js @@ -93,7 +93,7 @@ function HttpProxyMiddleware(context, opts) { // store uri before it gets rewritten for logging var originalPath = req.url; - var newProxyOptions = _.cloneDeep(proxyOptions); + var newProxyOptions = _.assign({}, proxyOptions); // Apply in order: // 1. option.router