lib/perus/server/helpers.rb in perus-0.1.21 vs lib/perus/server/helpers.rb in perus-0.1.22

- old
+ new

@@ -56,11 +56,11 @@ def authorised? return true if Server.options.auth['username'].empty? @auth ||= Rack::Auth::Basic::Request.new(request.env) @auth.provided? && @auth.basic? && @auth.credentials && @auth.credentials == [ - Server.options.auth['username'], - Server.options.auth['password'] + Server.options.auth['username'].to_s, + Server.options.auth['password'].to_s ] end end end