lib/plezi/helpers/http_sender.rb in plezi-0.10.12 vs lib/plezi/helpers/http_sender.rb in plezi-0.10.13

- old
+ new

@@ -33,10 +33,10 @@ # attempts to send a static file by the request path (using `send_file` and `send_raw_data`). # # returns true if data was sent. def send_static_file request, response - root = request.io[:params][:root] + root = request.io[:params][:public] return false unless root file_requested = request[:path].to_s.split('/') unless file_requested.include? '..' file_requested.shift file_requested = File.join(root, *file_requested)