lib/coverband/reporters/web.rb in coverband-5.2.6.rc.4 vs lib/coverband/reporters/web.rb in coverband-5.2.6.rc.5
- old
+ new
@@ -44,9 +44,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