Skip to content

Bug: Host header is not correctly set for non-default port #4213

@Jinming-Hu

Description

@Jinming-Hu

It's specified in RFC2616 that

A "host" without any trailing port information implies the default
port for the service requested (e.g., "80" for an HTTP URL).

so for HTTP or HTTPS that are not running on 80 or 443, we need to include port in Host header.

This is a bug in our code:

this->m_request.SetHeader("Host", this->m_request.GetUrl().GetHost());

Metadata

Metadata

Assignees

Labels

Azure.CorebugThis issue requires a change to an existing behavior in the product in order to be resolved.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions