Skip to content

Commit 8eba267

Browse files
ScottTrendacrobinson42
authored andcommitted
Pass through a non-blacklisted copy of params in HTTP
1 parent 975391b commit 8eba267

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ class DSHttpAdapter {
129129
let payload = config.data
130130
let cache = config.cache
131131
let timeout = config.timeout
132-
config = copy(config, null, null, null, ['data', 'cache', 'timeout'])
132+
let params = config.params
133+
config = copy(config, null, null, null, ['data', 'cache', 'timeout', 'params']) // params could have data, cache, timeout
134+
config.params = copy(params)
133135
config = deepMixIn(config, _this.defaults.httpConfig)
134136
config.data = payload
135137
config.cache = cache

0 commit comments

Comments
 (0)