Index: ahttp.py ================================================================== --- ahttp.py +++ ahttp.py @@ -51,11 +51,11 @@ #-- Retrieve data via HTTP # # Well, it says "get", but it actually does POST and AJAXish GET requests too. # -def get(url, params={}, referer="", post=0, ajax=0, binary=0, feedback=None, content=True): +def get(url, params={}, referer="", post=0, ajax=0, binary=0, feedback=None, content=True, verify=False): log.HTTP("GET", url, params ) # statusbar info progress_feedback(url) @@ -72,11 +72,11 @@ # read if post: r = session.post(url, params=params, headers=headers, timeout=7.5) else: - r = session.get(url, params=params, headers=headers, verify=False, timeout=9.75) + r = session.get(url, params=params, headers=headers, verify=verify, timeout=9.75) log.HTTP(">>>", r.request.headers ); log.HTTP("<<<", r.headers ); # finish, clean statusbar Index: favicon.py ================================================================== --- favicon.py +++ favicon.py @@ -124,17 +124,17 @@ return os.path.exists(file(url)) # copy image from url into icons/ directory def localcopy(url, download=False): - if url.startswith("http"): + if url and url.startswith("http"): fn = re.sub("[:/]", "_", url) fn = conf.dir + "/icons/" + fn if os.path.exists(fn): return fn elif download: - imgdata = ahttp.get(url, binary=1) + imgdata = ahttp.get(url, binary=1, verify=False) with open(fn, "wb") as f: f.write(imgdata) f.close() if os.path.exists(fn): return fn