Is your feature request related to a problem? Please describe.
Please describe the problem you are trying to solve.
Some servers deviate from HTTP spec enougth that Node.js can't communicate with them, but "work" when --insecure-http-parser is enabled globally. It would be useful to be able to use this mode, as a client, only when connecting to known bad servers.
See: https://github.com/nodejs/node/pull/30567#issuecomment-557004693
cc: @addaleax
Sounds good! I鈥檓 assuming we could implement this the same way we鈥檙e doing it for maxHeaderSize? I鈥檓 happy to take this on if you like.
The global flag was a necessity, IMO, see https://github.com/nodejs/node/pull/30567#issuecomment-556882227, but per connection would be nice, too.
@addaleax To be clear, I'm not _personally_ requesting this. It seems like a nice API addition, and at least 1 person has asked for it , and you mentioned an interest, but maybe its a good first contribution for someone else. As you wish.
Most helpful comment
The global flag was a necessity, IMO, see https://github.com/nodejs/node/pull/30567#issuecomment-556882227, but per connection would be nice, too.
@addaleax To be clear, I'm not _personally_ requesting this. It seems like a nice API addition, and at least 1 person has asked for it , and you mentioned an interest, but maybe its a good first contribution for someone else. As you wish.