whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: All other statuses assume string
Date Sun, 10 Jun 2018 10:28:10 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 3f6a96b  All other statuses assume string
3f6a96b is described below

commit 3f6a96b4e6371af3513556e0b5348574b1af4b1f
Author: Sebb <sebb@apache.org>
AuthorDate: Sun Jun 10 11:28:09 2018 +0100

    All other statuses assume string
---
 tools/mirror_check.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/mirror_check.rb b/tools/mirror_check.rb
index b73d669..e1d4104 100755
--- a/tools/mirror_check.rb
+++ b/tools/mirror_check.rb
@@ -112,10 +112,10 @@ def check_redirect(base, page, expectedLocation, severity=:W, expectedStatus
= "
   response
 end
 
-def check_CT(base, page, severity=:E, expectedStatus = 200)
+def check_CT(base, page, severity=:E, expectedStatus = "200")
   path = base + page
   response = getHTTPHdrs(path)
-  if response.code.to_i != expectedStatus
+  if response.code != expectedStatus
     test severity, "HTTP status #{response.code} for '#{path}'" unless severity == nil
     return nil
   end

-- 
To stop receiving notification emails like this one, please contact
sebb@apache.org.

Mime
View raw message