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}  


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

python 3.x - PyQt5 - Signal : pyqtSignal no method connect -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)