Skip to content

Commit 0e335a1

Browse files
Use Falcon's built-in gzip compression
Falcon already provides gzip compression via Protocol::HTTP::ContentEncoding in its server middleware stack (server.rb:33). This operates at the protocol level using Protocol::HTTP::Body::Deflate, which is async-aware and handles client disconnects gracefully — no Zlib::BufError.
1 parent 34bf20e commit 0e335a1

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

config/application.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ class Application < Rails::Application
5656
] = "postgres://#{username}:#{password}@#{host}:#{port}/#{dbname}"
5757
end
5858

59-
config.middleware.use Rack::Deflater
60-
6159
# Configuration for the application, engines, and railties goes here.
6260
#
6361
# These settings can be overridden in specific environments using the files

0 commit comments

Comments
 (0)