lib/coverband/reporters/web.rb in coverband-4.2.4 vs lib/coverband/reporters/web.rb in coverband-4.2.5.rc.1

- old
+ new

@@ -30,12 +30,13 @@ def call(env) @request = Rack::Request.new(env) return [401, { 'www-authenticate' => 'Basic realm=""' }, ['']] unless check_auth + request_path_info = (request.path_info == '') ? '/' : request.path_info if request.post? - case request.path_info + case request_path_info when %r{\/clear_view_tracking_file} clear_view_tracking_file when %r{\/clear_view_tracking} clear_view_tracking when %r{\/clear_file} @@ -44,10 +45,10 @@ clear else [404, { 'Content-Type' => 'text/html' }, ['404 error!']] end else - case request.path_info + case request_path_info when /.*\.(css|js|gif|png)/ @static.call(env) when %r{\/settings} [200, { 'Content-Type' => 'text/html' }, [settings]] when %r{\/view_tracker_data}