Skip to content

[Header] Making the port optional in the header "Host" #548

Closed
@fullmoonissue

Description

@fullmoonissue

Hi everyone,

In my current use case, I have a nginx above the access to elasticsearch.

The host header created during the process of the request contains the port ("Host: 'website.com:80'").

This actually causes 400 Bad Request or 404 Not Found messages from nginx.

Without any port on the host header, there's no more problem.

Could we add the port into the host header in an configurable way ?

In addition, the RFC (Section 14.23) show that the port is optional.

Here is the line which causes my issue.

What do you think of it ?

Regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions