дзеркало
https://github.com/therootcompany/request.js.git
synced 2024-11-16 17:28:58 +00:00
fix: copy http options from opts (not opts.uri)
This commit is contained in:
джерело
0a2e7afa76
коміт
5b539deb7b
4
index.js
4
index.js
@ -324,7 +324,9 @@ function setDefaults(defs) {
|
|||||||
'timeout',
|
'timeout',
|
||||||
'setHost'
|
'setHost'
|
||||||
].forEach(function (key) {
|
].forEach(function (key) {
|
||||||
finalOpts[key] = opts.uri[key];
|
if (key in opts) {
|
||||||
|
finalOpts[key] = opts[key];
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
finalOpts.method = opts.method;
|
finalOpts.method = opts.method;
|
||||||
|
|||||||
Завантаження…
x
Посилання в новій задачі
Block a user