File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ function buildRequest (opts) {
22
22
const baseUrl = opts . base
23
23
const http2Opts = getHttp2Opts ( opts )
24
24
const httpOpts = getHttpOpts ( opts )
25
+ const undiciOpts = opts . undici
25
26
var http2Client
26
27
var pool
27
28
var agents
@@ -96,7 +97,8 @@ function buildRequest (opts) {
96
97
path : opts . url . pathname + opts . qs ,
97
98
method : opts . method ,
98
99
headers : Object . assign ( { } , opts . headers ) ,
99
- body : opts . body
100
+ body : opts . body ,
101
+ requestTimeout : undiciOpts . requestTimeout
100
102
}
101
103
102
104
// remove forbidden headers
Original file line number Diff line number Diff line change 53
53
"pump" : " ^3.0.0" ,
54
54
"semver" : " ^7.2.1" ,
55
55
"tiny-lru" : " ^7.0.0" ,
56
- "undici" : " ^1.3.1 "
56
+ "undici" : " ^2.0.0 "
57
57
},
58
58
"tsd" : {
59
59
"directory" : " test"
You can’t perform that action at this time.
0 commit comments