Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removed @min_length nil check.

  • Loading branch information...
commit f48a75abc11f28c3b843567af51bfcd2c8dc1526 1 parent badb506
Jakub Pawlowicz authored January 09, 2013

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. 3  lib/rack/deflater.rb
3  lib/rack/deflater.rb
@@ -123,8 +123,7 @@ def should_deflate?(env, status, headers, body)
123 123
       end
124 124
 
125 125
       # Skip if response body is too short
126  
-      if @min_length &&
127  
-          @min_length > headers['Content-Length'].to_i
  126
+      if @min_length > headers['Content-Length'].to_i
128 127
         return false
129 128
       end
130 129
 

0 notes on commit f48a75a

Please sign in to comment.
Something went wrong with that request. Please try again.