lib/prx_auth/rails.rb in prx_auth-rails-4.1.0 vs lib/prx_auth/rails.rb in prx_auth-rails-4.2.0

- old
+ new

@@ -25,13 +25,13 @@ # guess protocol from host host = configuration.id_host path = configuration.cert_path protocol = - if host.include?('localhost') || host.include?('127.0.0.1') - 'http' + if host.include?("localhost") || host.include?("127.0.0.1") + "http" else - 'https' + "https" end app.middleware.insert_after Rack::Head, Rack::PrxAuth, cert_location: "#{protocol}://#{host}/#{path}", issuer: host