summaryrefslogtreecommitdiff
path: root/up.rb
diff options
context:
space:
mode:
Diffstat (limited to 'up.rb')
-rwxr-xr-xup.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/up.rb b/up.rb
index 0db1ea0..a9b7781 100755
--- a/up.rb
+++ b/up.rb
@@ -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