From 8efa13ef5faaa16e5042ea70b27adc2543b8ca53 Mon Sep 17 00:00:00 2001 From: Scott Trenda Date: Mon, 17 Sep 2018 14:43:47 -0500 Subject: [PATCH] Fix params blacklist --- src/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index e014c96..ce7ce78 100644 --- a/src/index.js +++ b/src/index.js @@ -770,7 +770,9 @@ Adapter.extend({ const payload = config.data const cache = config.cache const timeout = config.timeout - config = utils.copy(config, null, null, null, ['data', 'cache', 'timeout']) + const params = config.params + config = utils.copy(config, null, null, null, ['data', 'cache', 'timeout', 'params']) // params could have data, cache, timeout + config.params = utils.copy(params) config = utils.deepMixIn(config, this.httpConfig) config.data = payload config.cache = cache