lib/coverband/reporters/web.rb in coverband-5.2.3 vs lib/coverband/reporters/web.rb in coverband-5.2.3.1

- old
+ new

@@ -28,9 +28,14 @@ return unless auth_header Coverband.configuration.password == Base64.decode64(auth_header.split[1]).split(":")[1] end + def self.call(env) + @app ||= new + @app.call(env) + end + def call(env) @request = Rack::Request.new(env) return [401, {"www-authenticate" => 'Basic realm=""'}, [""]] unless check_auth