Skip to content

Commit

Permalink
Fix params blacklist
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottTrenda authored and crobinson42 committed Sep 25, 2018
1 parent d169d59 commit 8efa13e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8efa13e

Please sign in to comment.