Permalink
Browse files

Style fix.

  • Loading branch information...
1 parent 8bcb373 commit be7677637c867480cc7bbfd7b7d40ad333287c33 @gimite committed Nov 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/web_socket.rb
View
@@ -79,7 +79,7 @@ def initialize(arg, params = {})
end
@path = (uri.path.empty? ? "/" : uri.path) + (uri.query ? "?" + uri.query : "")
- host = uri.host + ((uri.port.nil? || uri.port == default_port) ? "" : ":#{uri.port}")
+ host = uri.host + ((!uri.port || uri.port == default_port) ? "" : ":#{uri.port}")
origin = params[:origin] || "http://#{uri.host}"
key1 = generate_key()
key2 = generate_key()

0 comments on commit be76776

Please sign in to comment.