extras/autoindex.rb in yahns-1.15.0 vs extras/autoindex.rb in yahns-1.16.0

- old
+ new

@@ -54,11 +54,11 @@ def call(env) 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"] path_info_ue = Rack::Utils.unescape(path_info, Encoding::BINARY) @@ -76,10 +76,10 @@ # try index.html and friends 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 # generate the index, show directories first dirs = []