镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

allow insecure-http-header parsing to be requested per server #31440

Description

@sam-github

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: #30567 (comment)

cc: @addaleax

Activity

  1. added
    httpIssues and PRs related to the http subsystem.
    on Jan 21, 2020
  2. addaleax commented on Jan 21, 2020

    @addaleax
    Member

    Sounds good! I’m assuming we could implement this the same way we’re doing it for maxHeaderSize? I’m happy to take this on if you like.

  3. sam-github commented on Jan 21, 2020

    @sam-github
    ContributorAuthor

    The global flag was a necessity, IMO, see #30567 (comment), 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.

  4. self-assigned this
    on Jan 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

httpIssues and PRs related to the http subsystem.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions