Sha256: 4ed13d0c28c2ca339771b4cb37b9b22d4dd117d857c1755704d2ed37af21cfe7
Contents?: true
Size: 647 Bytes
Versions: 9
Compression:
Stored size: 647 Bytes
Contents
# frozen_string_literal: true require "hanami" require "rack" module Hanami # Rack compatible server. # # It is run with: # # `bundle exec hanami server` # # It runs the application, by using the server specified in your `Gemfile` # (eg. Puma or Unicorn). # # @since 0.8.0 # @api private class Server < ::Rack::Server # Primarily this removes the ::Rack::Chunked middleware # which is the cause of Safari content-length bugs. # # @since 0.8.0 def middleware mw = ::Hash.new { |e, m| e[m] = [] } mw["development"].concat([::Rack::ShowExceptions, ::Rack::Lint]) mw end end end
Version data entries
9 entries across 9 versions & 1 rubygems