* fix typo in SSL support VRFS-2680

This commit is contained in:
Seth Call 2015-05-11 13:45:36 -05:00
parent f2aba1e390
commit 643595c531
1 changed files with 2 additions and 4 deletions

View File

@ -49,14 +49,12 @@ module ClientHelper
else
gon.websocket_gateway_trusted_uri = "ws://" + request.host + ":6768/websocket";
end
else
# but in any other mode, just use config
if request.headers['X-Forwarded-Proto'] == 'https'
gon.websocket_gateway_uri = Rails.application.config.websocket_gateway_trusted_uri_ssl
gon.websocket_gateway_trusted_uri = Rails.application.config.websocket_gateway_trusted_uri_ssl
else
gon.websocket_gateway_uri = Rails.application.config.websocket_gateway_trusted_uri
gon.websocket_gateway_trusted_uri = Rails.application.config.websocket_gateway_trusted_uri
end
end