Skip to content

net/http: behavior error when request doesn't have HOST header #31598

@Zheaoli

Description

@Zheaoli

Host header may not exist when some of the HTTP library make a request.

https://github.com/golang/go/blob/master/src/net/http/server.go#L982

In net/http, the default code forbade this request.

I think maybe raise warning info is a better idea than this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeWaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions