lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ans...@apache.org
Subject svn commit: r1724353 - in /lucene/dev/branches/lucene_solr_5_3: ./ dev-tools/ dev-tools/scripts/smokeTestRelease.py
Date Wed, 13 Jan 2016 04:49:08 GMT
Author: anshum
Date: Wed Jan 13 04:49:08 2016
New Revision: 1724353

URL: http://svn.apache.org/viewvc?rev=1724353&view=rev
Log:
Fix smoke test to handle HTTPS dist URLs (merge from lucene_solr_5_4)

Modified:
    lucene/dev/branches/lucene_solr_5_3/   (props changed)
    lucene/dev/branches/lucene_solr_5_3/dev-tools/   (props changed)
    lucene/dev/branches/lucene_solr_5_3/dev-tools/scripts/smokeTestRelease.py

Modified: lucene/dev/branches/lucene_solr_5_3/dev-tools/scripts/smokeTestRelease.py
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_5_3/dev-tools/scripts/smokeTestRelease.py?rev=1724353&r1=1724352&r2=1724353&view=diff
==============================================================================
--- lucene/dev/branches/lucene_solr_5_3/dev-tools/scripts/smokeTestRelease.py (original)
+++ lucene/dev/branches/lucene_solr_5_3/dev-tools/scripts/smokeTestRelease.py Wed Jan 13 04:49:08
2016
@@ -84,7 +84,12 @@ def getHREFs(urlString):
   # Deref any redirects
   while True:
     url = urllib.parse.urlparse(urlString)
-    h = http.client.HTTPConnection(url.netloc)
+    if url.scheme == "http":
+      h = http.client.HTTPConnection(url.netloc)
+    elif url.scheme == "https":
+      h = http.client.HTTPSConnection(url.netloc)
+    else:
+      raise RuntimeError("Unknown protocol: %s" % url.scheme)
     h.request('GET', url.path)
     r = h.getresponse()
     newLoc = r.getheader('location')



Mime
View raw message