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: Warn if not Apache server
Date Mon, 02 Mar 2020 11:36:20 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 327ea01  Warn if not Apache server
327ea01 is described below

commit 327ea016e10d9911c3f57b378639e0ac17d270f6
Author: Sebb <sebb@apache.org>
AuthorDate: Mon Mar 2 11:30:51 2020 +0000

    Warn if not Apache server
---
 tools/mirror_check.rb | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tools/mirror_check.rb b/tools/mirror_check.rb
index d50c0f1..53e3004 100755
--- a/tools/mirror_check.rb
+++ b/tools/mirror_check.rb
@@ -231,7 +231,12 @@ def checkHTTP(base)
   setup
 
   response = getHTTPHdrs(base)
-  I "Server: #{response['server']}"
+  server = response['server']
+  if server =~ /Apache/
+    I "Server: #{server}"
+  else
+    W "Server: '#{server}' - expected 'Apache' in server response"
+  end
 
   # Check the mirror time (and that zzz/ is readable)
   time = check_page(base, 'zzz/time.txt', severity = :F)


Mime
View raw message