We should include the Host header if the port was explicit.

This commit is contained in:
Richard van der Hoff 2018-08-29 22:15:38 +01:00
parent d493c82e82
commit 196159be91

View file

@ -100,11 +100,12 @@ address and port using the following process:
endpoints or to failover to another endpoint if an endpoint fails. endpoints or to failover to another endpoint if an endpoint fails.
When making requests to servers, use the hostname of the target server in the When making requests to servers, use the hostname of the target server in the
``Host`` header, regardless of the any hostname given in the SRV record. For ``Host`` header, regardless of any hostname given in the SRV record. For
example, if the server name is ``example.org``, and the SRV record resolves to example, if the server name is ``example.org``, and the SRV record resolves to
``matrix.example.org``, the ``Host`` header in the request should be ``matrix.example.org``, the ``Host`` header in the request should be
``example.org``. The port number for target server should **not** appear in the ``example.org``. If an explicit port was given in the server name, it should be
``Host`` header. included in the ``Host`` header; otherwise, no port number should be given in
the ``Host`` header.
Server implementation Server implementation
~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~