({ options, headers, contentLength })
| 69687 | headers: reqHeaders, |
| 69688 | ...httpAgent && { agent: httpAgent }, |
| 69689 | // @ts-ignore node-fetch uses a custom AbortSignal type that is |
| 69690 | // not compatible with standard web types |
| 69691 | signal: options.signal ?? null |
| 69692 | }; |
| 69693 | return { req, url: url2, timeout }; |
| 69694 | } |
| 69695 | buildHeaders({ options, headers, contentLength }) { |
| 69696 | const reqHeaders = {}; |
| 69697 | if (contentLength) { |
| 69698 | reqHeaders["content-length"] = contentLength; |
| 69699 | } |
| 69700 | const defaultHeaders = this.defaultHeaders(options); |
| 69701 | applyHeadersMut(reqHeaders, defaultHeaders); |
| 69702 | applyHeadersMut(reqHeaders, headers); |
| 69703 | if (isMultipartBody(options.body) && kind !== "node") { |
| 69704 | delete reqHeaders["content-type"]; |
| 69705 | } |
no test coverage detected