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 1e9ada9  Committed in error
1e9ada9 is described below

commit 1e9ada9253e79843a5706ccae9fe0425ab9aae86
Author: Sebb <[email protected]>
AuthorDate: Wed Jan 15 00:27:24 2020 +0000

    Committed in error
---
 tools/download_url.rb | 22 ----------------------
 1 file changed, 22 deletions(-)

diff --git a/tools/download_url.rb b/tools/download_url.rb
deleted file mode 100644
index 4eff518..0000000
--- a/tools/download_url.rb
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env ruby
-
-# Check a URL
-
-require 'net/http'
-
-def HEAD(url)
-  url.untaint
-  uri = URI.parse(url)
-  unless uri.scheme
-    puts "No scheme for URL #{url}, assuming http"
-    uri = URI.parse("http:"+url)
-  end
-  http = Net::HTTP.new(uri.host, uri.port)
-  http.use_ssl = uri.scheme == 'https'
-  request = Net::HTTP::Head.new(uri.request_uri)
-  http.request(request)
-end
-
-response = HEAD 
'http://apache.claz.org/jspwiki/2.11.0.M6/source/jspwiki-builder-2.11.0.M6-source-release.zip'
-p response
-p response.code

Reply via email to