Skip to content

Commit

Permalink
Fix for #111 - [websocket] Both Netty and Grizzly issues with URI wit…
Browse files Browse the repository at this point in the history
…hout port.
  • Loading branch information
rlubke committed May 15, 2012
1 parent 9c34195 commit 44fb654
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -522,9 +522,9 @@ static int getPort(final URI uri, final int p) {
int port = p;
if (port == -1) {
final String protocol = uri.getScheme().toLowerCase();
if ("http".equals(protocol)) {
if ("http".equals(protocol) || "ws".equals(protocol)) {
port = 80;
} else if ("https".equals(protocol)) {
} else if ("https".equals(protocol) || "wss".equals(protocol)) {
port = 443;
} else {
throw new IllegalArgumentException("Unknown protocol: " + protocol);
Expand Down

0 comments on commit 44fb654

Please sign in to comment.