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 "/"
responseMsg = "HTTP response "
requestHeaders = ""
responseHeaders = ""
responseHeaders = None
logHeaders = ""
try:
@ -253,6 +253,7 @@ class Connect:
except urllib2.HTTPError, e:
page = None
responseHeaders = None
try:
page = e.read()
responseHeaders = e.info()

View File

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