File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class ApplicationController < ActionController::Base
11
11
def index
12
12
begin
13
13
req = Net ::HTTP ::Get . new ( nodejs_uri . to_s )
14
- res = Net ::HTTP . start ( nodejs_uri . host , nodejs_uri . port ) { |http |
14
+ res = Net ::HTTP . start ( nodejs_uri . host , nodejs_uri . port , :use_ssl => nodejs_uri . scheme == 'https' ) { |http |
15
15
http . read_timeout = 2
16
16
http . open_timeout = 2
17
17
http . request ( req )
@@ -25,13 +25,12 @@ def index
25
25
26
26
rescue => e
27
27
logger . error e . message
28
- logger . error e . backtrace . join ( "\n " )
29
28
@text = "no backend found"
30
29
end
31
30
32
31
begin
33
32
crystalreq = Net ::HTTP ::Get . new ( crystal_uri . to_s )
34
- crystalres = Net ::HTTP . start ( crystal_uri . host , crystal_uri . port ) { |http |
33
+ crystalres = Net ::HTTP . start ( crystal_uri . host , crystal_uri . port , :use_ssl => crystal_uri . scheme == 'https' ) { |http |
35
34
http . read_timeout = 2
36
35
http . open_timeout = 2
37
36
http . request ( crystalreq )
@@ -45,7 +44,6 @@ def index
45
44
46
45
rescue => e
47
46
logger . error e . message
48
- logger . error e . backtrace . join ( "\n " )
49
47
@crystal = "no backend found"
50
48
end
51
49
end
@@ -83,7 +81,6 @@ def expand_url(url)
83
81
end
84
82
rescue => e
85
83
logger . error e . message
86
- logger . error e . backtrace . join ( "\n " )
87
84
end
88
85
89
86
logger . info "expanded #{ url } to #{ uri } "
You can’t perform that action at this time.
0 commit comments