diff --git a/lib/robots.rb b/lib/robots.rb index 2ea334e..5589124 100644 --- a/lib/robots.rb +++ b/lib/robots.rb @@ -14,7 +14,7 @@ def initialize(uri, user_agent) io = Robots.get_robots_txt(uri, user_agent) - if !io || io.content_type != "text/plain" || io.status != ["200", "OK"] + if !io || io.content_type != "text/plain" || io.status.first != "200" io = StringIO.new("User-agent: *\nAllow: /\n") end