From ccbd3d588d943e27523b41f478de3840524b7761 Mon Sep 17 00:00:00 2001 From: bapirex Date: Tue, 11 Oct 2016 14:51:40 -0700 Subject: [PATCH] Ignore SSL cerificate validation since we're hosting on localhost anyway... --- lib/reverse_proxy/client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reverse_proxy/client.rb b/lib/reverse_proxy/client.rb index 662fcc4..16df1c6 100644 --- a/lib/reverse_proxy/client.rb +++ b/lib/reverse_proxy/client.rb @@ -79,7 +79,7 @@ module ReverseProxy target_request['Accept-Encoding'] = nil # Make the request - Net::HTTP.start(uri.hostname, uri.port, use_ssl: (uri.scheme == "https")) do |http| + Net::HTTP.start(uri.hostname, uri.port, use_ssl: (uri.scheme == "https"), :verify_mode: => OpenSSL::SSL::VERIFY_NONE) do |http| target_response = http.request(target_request) end