Skip to content

Commit cf1b8cc

Browse files
authored
Fixes HPE_INVALID_HEADER_TOKEN
1 parent cd33d22 commit cf1b8cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default function fetch(url, opts) {
5656
// build request object
5757
const request = new Request(url, opts);
5858
const options = getNodeRequestOptions(request);
59-
59+
options.insecureHTTPParser = true;
6060
const send = (options.protocol === 'https:' ? https : http).request;
6161
const { signal } = request;
6262
let response = null;

0 commit comments

Comments
 (0)