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:
calvin 2002-11-27 14:23:01 +00:00
parent 3824f6b91b
commit 6e4414104c

View file

@ -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)