summary refs log tree commit
diff options
context:
space:
mode:
authorMartin Schürrer <martin@schuerrer.org>2013-07-14 20:14:03 +0200
committerMartin Schürrer <martin@schuerrer.org>2013-07-14 20:14:03 +0200
commit58c24bbafdd476d16d9c3778b2455625bb27f67e (patch)
tree8953e40f14f85295151f2a873f626a3d9eb86e0e
parenta956697d0ea8502c426c29b3d247b9b641764eff (diff)
downloadrack-58c24bbafdd476d16d9c3778b2455625bb27f67e.tar.gz
Fix bug in sendfile.rb
The error message called `variation` without the env leading to an `ArgumentError`. It should call `type` instead.
-rw-r--r--lib/rack/sendfile.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/sendfile.rb b/lib/rack/sendfile.rb
index c247a3bc..8a674904 100644
--- a/lib/rack/sendfile.rb
+++ b/lib/rack/sendfile.rb
@@ -130,7 +130,7 @@ module Rack
           body = []
         when '', nil
         else
-          env['rack.errors'].puts "Unknown x-sendfile variation: '#{variation}'.\n"
+          env['rack.errors'].puts "Unknown x-sendfile variation: '#{type}'.\n"
         end
       end
       [status, headers, body]