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

This commit is contained in:
AJ ONeal 2022-06-14 01:24:50 -06:00 committed by GitHub
부모 0a2e7afa76
커밋 5b539deb7b
No known key found for this signature in database
GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제

파일 보기

@ -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;