From c337634b8e511a3c11f4fe2a6faf5d29245516a1 Mon Sep 17 00:00:00 2001 From: Guenter Obiltschnig Date: Sun, 3 Jul 2016 11:20:11 +0200 Subject: [PATCH] fixed GH #1304: URI doesn't know ws:/ or wss:// schemes --- Foundation/src/URI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Foundation/src/URI.cpp b/Foundation/src/URI.cpp index f645b6f83..0f375bd29 100644 --- a/Foundation/src/URI.cpp +++ b/Foundation/src/URI.cpp @@ -699,13 +699,13 @@ unsigned short URI::getWellKnownPort() const return 22; else if (_scheme == "telnet") return 23; - else if (_scheme == "http") + else if (_scheme == "http" || _scheme == "ws") return 80; else if (_scheme == "nntp") return 119; else if (_scheme == "ldap") return 389; - else if (_scheme == "https") + else if (_scheme == "https" || _scheme == "wss") return 443; else if (_scheme == "rtsp") return 554;