From 8e44a0bd469cba6d9cba9ea45ee3eb85c7cbb381 Mon Sep 17 00:00:00 2001 From: DexesTTP Date: Fri, 16 Apr 2021 15:21:03 +0200 Subject: [PATCH] AK: Add default ports for Websockets to the URL class --- AK/URL.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AK/URL.cpp b/AK/URL.cpp index 505213d4e7..5ba43cd2f6 100644 --- a/AK/URL.cpp +++ b/AK/URL.cpp @@ -441,6 +441,10 @@ u16 URL::default_port_for_protocol(const String& protocol) return 6667; if (protocol == "ircs") return 6697; + if (protocol == "ws") + return 80; + if (protocol == "wss") + return 443; return 0; }