Websockets Host field missing port number

When experimenting with websockets I noticed, that the websockets are not correctly implemented.

When looking here, you can see that the Host field is filled with the address. According to RFC2616 it should be filled with address:port, if the port is not a standard port for HTTP/HTTPS.

I am trying to connect to a local wesocket server. The server is accessible from connection test webpages no matter what port I set but UE will only connect to it in port 80.

Server logs:

port 80:
WebSocket = FWebSocketsModule::Get().CreateWebSocket(“ws://localhost:80/Echo”);

10/08/2022 18:00:54|Debug|WebSocket.InternalAccept|A request from [::1]:51792:
GET /Echo HTTP/1.1
Pragma: no-cache
Cache-Control: no-cache
Host: localhost
Origin: http://localhost
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Key: XdTL/Jb1RTsTDYkKHNuuMg==
Sec-WebSocket-Version: 13
10/08/2022 18:00:54|Debug|WebSocket.acceptHandshake|A response to this request:
HTTP/1.1 101 Switching Protocols
Server: websocket-sharp/1.0
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: 6avxsTUM8Ux1AeN/1V+C5AD6eLc=

Any other port:
WebSocket = FWebSocketsModule::Get().CreateWebSocket(“ws://localhost:8080/Echo”);

10/08/2022 18:02:40|Debug|WebSocket.Close|A response to this request:
HTTP/1.1 400 Bad Request
Server: websocket-sharp/1.0
Connection: close