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 326c54f  Allow for redirected md5/sha hashes
326c54f is described below

commit 326c54f7a215690caaaf15d44b5b5d11c85d0201
Author: Sebb <[email protected]>
AuthorDate: Mon Mar 2 21:48:53 2020 +0000

    Allow for redirected md5/sha hashes
---
 tools/download_check.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/download_check.rb b/tools/download_check.rb
index a72b85e..f9acdde 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -496,7 +496,7 @@ def _checkDownloadPage(path, tlp, version)
         next
       end
       if host == 'www' or host == ''
-        res = check_head(h,:E, "200", false)
+        res = check_head(h,:E, "200", false, true) # allow for redirect here
         next unless res
         lastmod = res['last-modified']
         date = Time.parse(lastmod)

Reply via email to