diff --git a/ReactAndroid/src/main/java/com/facebook/react/modules/websocket/WebSocketModule.java b/ReactAndroid/src/main/java/com/facebook/react/modules/websocket/WebSocketModule.java index 33d8644eeabff7..c9bbcb73457115 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/modules/websocket/WebSocketModule.java +++ b/ReactAndroid/src/main/java/com/facebook/react/modules/websocket/WebSocketModule.java @@ -352,7 +352,7 @@ private static String getDefaultOrigin(String uri) { requestURI.getHost(), requestURI.getPort()); } else { - defaultOrigin = String.format("%s://%s/", scheme, requestURI.getHost()); + defaultOrigin = String.format("%s://%s", scheme, requestURI.getHost()); } return defaultOrigin;