From 2285ea067cadef059191464bee9d197dadee0df9 Mon Sep 17 00:00:00 2001 From: Chris Cowan Date: Mon, 1 Dec 2014 14:54:06 -0700 Subject: [PATCH] Closes #2056 - Added Rack::Deflater middleware --- src/server/lib/app.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server/lib/app.rb b/src/server/lib/app.rb index cd18909f87730..74cabdadffef6 100644 --- a/src/server/lib/app.rb +++ b/src/server/lib/app.rb @@ -11,6 +11,7 @@ require "routes/proxy" require "lib/FrameOptions" require "routes/plugins" +require "rack/deflater" class Logger alias_method :write, :<< @@ -51,6 +52,8 @@ class App < Sinatra::Base json :status => 404, :message => "Not Found" end + use Rack::Deflater + # Routes go here use Routes::Home use Routes::Proxy