ruby on rails - rack::proxy does not work to specific path -
got stuck not sure happening.
if not specify path , run perform request works fine.
def perform_request(env)   env["http_host"] = "node:8765"   super(env) end however when want proxy if match path not work.
def perform_request(env)   request = rack::request.new(env)   if request.path =~ %r{^/api/check}     #puts "weird!!!!!"     env["http_host"] = "node:8765"     super(env)   else     @app.call(env)   end end configured middleware(config/application.rb):
config.middleware.use nproxy, {ssl_verify_none: true}