Mirror von
https://github.com/therootcompany/request.js.git
synchronisiert 2024-11-16 17:28:58 +00:00
fix: copy http options from opts (not opts.uri)
Dieser Commit ist enthalten in:
Ursprung
0a2e7afa76
Commit
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;
|
||||||
|
|||||||
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren