mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-05 13:14:46 +00:00
cope with malformed proxy settings
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@359 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
105d30cbd2
commit
0c5bf66389
1 changed files with 3 additions and 1 deletions
|
|
@ -190,6 +190,8 @@ class HttpUrlData(UrlData):
|
|||
self.proxyuser = None
|
||||
self.proxypass = None
|
||||
if self.proxy:
|
||||
if self.proxy[:7].lower() != "http://":
|
||||
self.proxy = "http://"+self.proxy
|
||||
self.proxy = splittype(self.proxy)[1]
|
||||
self.proxy = splithost(self.proxy)[0]
|
||||
self.proxyuser, self.proxy = splituser(self.proxy)
|
||||
|
|
@ -205,7 +207,7 @@ class HttpUrlData(UrlData):
|
|||
host = self.proxy
|
||||
else:
|
||||
host = self.urlTuple[1]
|
||||
|
||||
Config.debug(HURT_ME_PLENTY, "host", host)
|
||||
if self.urlConnection:
|
||||
self.closeConnection()
|
||||
self.urlConnection = self._getHTTPObject(host)
|
||||
|
|
|
|||
Loading…
Reference in a new issue