1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:17:35 +00:00

AK: Add default ports for Websockets to the URL class

This commit is contained in:
DexesTTP 2021-04-16 15:21:03 +02:00 committed by Andreas Kling
parent 4c1d4baada
commit 8e44a0bd46

View file

@ -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;
}