Skip to content

Commit

Permalink
[merb-gen] Use Rack's ContentLength middleware
Browse files Browse the repository at this point in the history
Rack's implementation is more robust and correctly handles a few edge
cases merb's missed.
  • Loading branch information
namelessjon committed Mar 23, 2010
1 parent 77f130a commit 3f959af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use Rack::Head

# Correctly set a content length.
use Merb::Rack::ContentLength
use Rack::ContentLength

# use PathPrefix Middleware if :path_prefix is set in Merb::Config
if prefix = ::Merb::Config[:path_prefix]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use Rack::Head

# Correctly set a content length.
use Merb::Rack::ContentLength
use Rack::ContentLength

# use PathPrefix Middleware if :path_prefix is set in Merb::Config
if prefix = ::Merb::Config[:path_prefix]
Expand Down

0 comments on commit 3f959af

Please sign in to comment.