2
0
鏡像自 https://github.com/therootcompany/request.js synced 2025-07-05 14:26:30 +00:00

fix: copy http options from opts (not opts.uri)

This commit is contained in:
AJ ONeal 2022-06-14 01:24:50 -06:00 提交者 GitHub
父節點 0a2e7afa76
當前提交 5b539deb7b
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: 4AEE18F83AFDEB23

查看文件

@ -324,7 +324,9 @@ function setDefaults(defs) {
'timeout',
'setHost'
].forEach(function (key) {
finalOpts[key] = opts.uri[key];
if (key in opts) {
finalOpts[key] = opts[key];
}
});
finalOpts.method = opts.method;