about summary refs log tree commit homepage
path: root/extras
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-11-15 07:43:49 +0000
committerEric Wong <e@80x24.org>2013-11-15 07:57:37 +0000
commite4c7ec5aa9c9e0c137b5314dbac188b70978c7a0 (patch)
tree5460099815d5597bc4f5f5988f786dc3337e642a /extras
parent961b2c60e190d1e212a30e6c87de590cab44a206 (diff)
downloadyahns-e4c7ec5aa9c9e0c137b5314dbac188b70978c7a0.tar.gz
Clients may be requesting gzipped files through Rack::Deflater,
which will attempt to further compress files.
Diffstat (limited to 'extras')
-rw-r--r--extras/try_gzip_static.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/try_gzip_static.rb b/extras/try_gzip_static.rb
index e3010f1..57b899f 100644
--- a/extras/try_gzip_static.rb
+++ b/extras/try_gzip_static.rb
@@ -12,9 +12,9 @@ class TryGzipStatic
     # attr_writer :sf_range
 
     # only used if the server does not handle #to_path,
-    # yahns should never hit this
+    # we actually hit this if serving the gzipped file in the first place,
+    # _and_ Rack::Deflater is used in the middleware stack.  Oh well...
     def each
-      raise "we should never get here in yahns"
       buf = ""
       rsize = 8192
       if @sf_range