lib/napa/middleware/app_monitor.rb in napa-0.2.1 vs lib/napa/middleware/app_monitor.rb in napa-0.3.0
- old
+ new
@@ -4,10 +4,10 @@
def initialize(app)
@app = app
end
def call(env)
- if ["/health", "/health.json"].include? env['REQUEST_PATH']
+ if ["/health", "/health.json"].include? env['PATH_INFO']
[200, { 'Content-type' => 'application/json' }, [Napa::Identity.health.to_json]]
else
@app.call(env)
end
end