minor fixes

This commit is contained in:
Miroslav Stampar 2011-01-25 16:05:06 +00:00
parent 20df2bbd10
commit 430fd5cd63
2 changed files with 3 additions and 2 deletions

View File

@ -95,7 +95,7 @@ class Connect:
requestMsg += "%s" % urlparse.urlsplit(url)[2] or "/" requestMsg += "%s" % urlparse.urlsplit(url)[2] or "/"
responseMsg = "HTTP response " responseMsg = "HTTP response "
requestHeaders = "" requestHeaders = ""
responseHeaders = "" responseHeaders = None
logHeaders = "" logHeaders = ""
try: try:
@ -253,6 +253,7 @@ class Connect:
except urllib2.HTTPError, e: except urllib2.HTTPError, e:
page = None page = None
responseHeaders = None
try: try:
page = e.read() page = e.read()
responseHeaders = e.info() responseHeaders = e.info()

View File

@ -247,7 +247,7 @@ class Web:
elif "<%" in uplPage or "<?" in uplPage: elif "<%" in uplPage or "<?" in uplPage:
warnMsg = "file stager uploaded " warnMsg = "file stager uploaded "
warnMsg += "on '%s' but not dynamically interpreted" % uriPage warnMsg += "on '%s' but not dynamically interpreted" % localPath
logger.warn(warnMsg) logger.warn(warnMsg)
continue continue