Minor cleanup and initial work for #58

This commit is contained in:
Miroslav Stampar
2013-08-09 14:13:48 +02:00
parent 4beef0900d
commit a711c9ed36
7 changed files with 40 additions and 30 deletions

View File

@@ -372,7 +372,7 @@ class Connect(object):
conn = urllib2.urlopen(req)
if not kb.authHeader and getRequestHeader(req, HTTP_HEADER.AUTHORIZATION) and conf.aType == AUTH_TYPE.BASIC:
if not kb.authHeader and getRequestHeader(req, HTTP_HEADER.AUTHORIZATION) and conf.authType == AUTH_TYPE.BASIC:
kb.authHeader = getRequestHeader(req, HTTP_HEADER.AUTHORIZATION)
if not kb.proxyAuthHeader and getRequestHeader(req, HTTP_HEADER.PROXY_AUTHORIZATION):