Skip to content

Commit

Permalink
Adjust formatting of Ruby transport options.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoglan committed May 30, 2016
1 parent d2ed6a8 commit 038af1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 1 addition & 3 deletions lib/faye/transport/http.rb
Expand Up @@ -50,9 +50,7 @@ def create_request(params)
version = EventMachine::HttpRequest::VERSION.split('.')[0].to_i
options = {
:inactivity_timeout => 0,
:tls => {
:sni_hostname => @endpoint.hostname
}
:tls => {:sni_hostname => @endpoint.hostname}
}

if @proxy[:origin]
Expand Down
8 changes: 3 additions & 5 deletions lib/faye/transport/web_socket.rb
Expand Up @@ -70,11 +70,9 @@ def connect

options = {
:extensions => extensions,
:headers => headers,
:proxy => @proxy,
:tls => {
:sni_hostname => url.hostname
}
:headers => headers,
:proxy => @proxy,
:tls => {:sni_hostname => url.hostname}
}

socket = Faye::WebSocket::Client.new(url.to_s, [], options)
Expand Down

0 comments on commit 038af1b

Please sign in to comment.