diff options
-rwxr-xr-x | up.rb | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -53,8 +53,9 @@ class Host begin url = URI site response = Net::HTTP.get_response url + puts response.code #return response.kind_of? Net::HTTPSuccess - return [200, 301].include? response.code.to_i + return [200, 301, 401].include? response.code.to_i rescue return false end |