about summary refs log tree commit homepage
path: root/extras/autoindex.rb
diff options
context:
space:
mode:
Diffstat (limited to 'extras/autoindex.rb')
-rw-r--r--extras/autoindex.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/autoindex.rb b/extras/autoindex.rb
index 238edd9..45b80cf 100644
--- a/extras/autoindex.rb
+++ b/extras/autoindex.rb
@@ -56,7 +56,7 @@ class Autoindex
     case env["REQUEST_METHOD"]
     when "GET", "HEAD"
       # try to serve the static file, first
-      status, headers, body = res = @app.call(env)
+      status, _, body = res = @app.call(env)
       return res if status.to_i != 404
 
       path_info = env["PATH_INFO"]
@@ -78,7 +78,7 @@ class Autoindex
       tryenv = env.dup
       @index.each do |base|
         tryenv["PATH_INFO"] = "#{path_info}#{base}"
-        status, headers, body = res = @app.call(tryenv)
+        status, _, body = res = @app.call(tryenv)
         return res if status.to_i != 404
       end