diff --git a/lib/font_assets/middleware.rb b/lib/font_assets/middleware.rb index 32dc028..16139ca 100644 --- a/lib/font_assets/middleware.rb +++ b/lib/font_assets/middleware.rb @@ -21,6 +21,10 @@ def access_control_headers end def call(env) + dup.__call(env) + end + + def __call(env) @ssl_request = Rack::Request.new(env).scheme == "https" # intercept the "preflight" request if env["REQUEST_METHOD"] == "OPTIONS" @@ -31,8 +35,7 @@ def call(env) [code, headers, body] end end - - + private def origin