Merge "Handle html log annotations."

This commit is contained in:
Jenkins 2013-08-01 19:32:44 +00:00 committed by Gerrit Code Review
commit 738acae92c

View File

@ -123,6 +123,8 @@ class LogRetriever(threading.Thread):
try:
logging.debug("Retrieving: " + source_url)
r = urllib2.urlopen(source_url)
if 'gzip' in r.info().get('Content-Type', ''):
gzipped = True
except urllib2.URLError:
try:
logging.debug("Retrieving: " + source_url + ".gz")