mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-01 09:24:55 +02:00
fixed GH #1304: URI doesn't know ws:/ or wss:// schemes
This commit is contained in:
parent
92fa1b1884
commit
4bc95aaedf
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user