From 38541a97630988c4bd25714f1966ddef83cd9872 Mon Sep 17 00:00:00 2001 From: Gagan Awhad Date: Thu, 24 Oct 2013 14:40:42 -0500 Subject: [PATCH] Fix for apps that will change env['PATH_INFO'] --- lib/font_assets/middleware.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/font_assets/middleware.rb b/lib/font_assets/middleware.rb index d4639b4..4ec5475 100644 --- a/lib/font_assets/middleware.rb +++ b/lib/font_assets/middleware.rb @@ -26,8 +26,9 @@ def call(env) if env["REQUEST_METHOD"] == "OPTIONS" return [200, access_control_headers, []] else + path = env["PATH_INFO"].dup code, headers, body = @app.call(env) - set_headers! headers, body, env["PATH_INFO"] + set_headers! headers, body, path [code, headers, body] end end