lib/servel/app.rb in servel-0.11.0 vs lib/servel/app.rb in servel-0.12.0

- old
+ new

@@ -16,10 +16,11 @@ return redirect("#{url_root}#{url_path}/") unless env["PATH_INFO"].end_with?("/") return [404, {}, []] unless fs_path.exist? - Servel::Index.new(url_root: url_root, url_path: url_path, fs_path: fs_path).render + request = Rack::Request.new(env) + Servel::Index.new(url_root: url_root, url_path: url_path, fs_path: fs_path, params: request.params).render end def redirect(location) [302, { "Location" => location }, []] end \ No newline at end of file