Skip to content

Commit 307faf3

Browse files
committed
Fix not working code: verify_ssl and timeout
are dead / causing errors
1 parent 6320002 commit 307faf3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/rack/reverse_proxy.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class ReverseProxy
1111
def initialize(app = nil, &b)
1212
@app = app || lambda {|env| [404, [], []] }
1313
@matchers = []
14-
@global_options = {:preserve_host => true, :x_forwarded_host => true, :matching => :all, :verify_ssl => true, :replace_response_host => false}
14+
@global_options = {:preserve_host => true, :x_forwarded_host => true, :matching => :all, :replace_response_host => false}
1515
instance_eval &b if block_given?
1616
end
1717

@@ -63,8 +63,6 @@ def proxy(env, source_request, matcher)
6363
target_response = HttpStreamingResponse.new(target_request, uri.host, uri.port)
6464

6565
target_response.use_ssl = "https" == uri.scheme
66-
target_response.verify_ssl = options[:verify_ssl]
67-
target_response.timeout = options[:timeout]
6866

6967
# Let rack set the transfer-encoding header
7068
response_headers = target_response.headers

0 commit comments

Comments
 (0)