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 <[email protected]>
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)