Replies: 2 comments 3 replies
-
👍 I've had the same problem. Using --insecure-http-parser is annoying as it prints error on stdout. |
Beta Was this translation helpful? Give feedback.
0 replies
-
fetch() is a web standard, insecureHTTPParser is not. You can plug your own agent into fetch() though. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey!
Since the two things:
fetch
, as well asinsecureHTTPParser
option available onhttp/https.requests
have been introduced in latest versions of node.js, it would be fitting so see this flag available also on
fetch
options.Our teem would gladly see this improvement implemented and also you can see how this feature was requested/implemented in node-fetch v3:
node-fetch/node-fetch#724
https://github.com/node-fetch/node-fetch/blob/7b86e946b02dfdd28f4f8fca3d73a022cbb5ca1e/src/request.js#L139
Do you think it's possible to get this feature on node.js native fetch?
Beta Was this translation helpful? Give feedback.
All reactions