openvidu-server: fix checkWebsocketUri condition

pull/419/head
Alexander 2020-04-03 15:59:01 +03:00
parent eb87f3c9a2
commit 534f838488
1 changed files with 1 additions and 1 deletions

View File

@ -381,7 +381,7 @@ public class OpenviduConfig {
public URI checkWebsocketUri(String uri) throws Exception { public URI checkWebsocketUri(String uri) throws Exception {
try { try {
if (!uri.startsWith("ws://") || uri.startsWith("wss://")) { if (!uri.startsWith("ws://") || !uri.startsWith("wss://")) {
throw new Exception("WebSocket protocol not found"); throw new Exception("WebSocket protocol not found");
} }
String parsedUri = uri.replaceAll("^ws://", "http://").replaceAll("^wss://", "https://"); String parsedUri = uri.replaceAll("^ws://", "http://").replaceAll("^wss://", "https://");