mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-04 21:04:41 +00:00
remove skip_host check
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@640 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
3824f6b91b
commit
6e4414104c
1 changed files with 1 additions and 10 deletions
|
|
@ -23,12 +23,6 @@ if Config.DebugLevel > 0:
|
|||
from ProxyUrlData import ProxyUrlData
|
||||
from debuglevels import *
|
||||
|
||||
try:
|
||||
h = httplib.HTTPConnection('')
|
||||
h.putrequest('GET', '/', skip_host=1)
|
||||
_skip_host=1
|
||||
except TypeError:
|
||||
_skip_host=0
|
||||
_supported_encodings = ('gzip', 'x-gzip', 'deflate')
|
||||
|
||||
class HttpUrlData (ProxyUrlData):
|
||||
|
|
@ -224,10 +218,7 @@ class HttpUrlData (ProxyUrlData):
|
|||
else:
|
||||
path = urlparse.urlunparse(('', '', self.urlTuple[2],
|
||||
self.urlTuple[3], self.urlTuple[4], ''))
|
||||
if _skip_host:
|
||||
self.urlConnection.putrequest(method, path, skip_host=1)
|
||||
else:
|
||||
self.urlConnection.putrequest(method, path)
|
||||
self.urlConnection.putrequest(method, path, skip_host=1)
|
||||
self.urlConnection.putheader("Host", host)
|
||||
if self.auth:
|
||||
self.urlConnection.putheader("Authorization", self.auth)
|
||||
|
|
|
|||
Loading…
Reference in a new issue