fix for that non-HTML stuff

This commit is contained in:
Miroslav Stampar 2011-02-22 11:32:55 +00:00
parent ff9080de48
commit 17c39fe231
2 changed files with 2 additions and 4 deletions

View File

@ -154,8 +154,6 @@ def decodePage(page, contentEncoding, contentType):
return page
def processResponse(page, responseHeaders):
page = getUnicode(page)
parseResponse(page, responseHeaders)
if conf.parseErrors:

View File

@ -285,7 +285,7 @@ class Connect:
if responseHeaders:
logHeaders = "\n".join(["%s: %s" % (key.capitalize() if isinstance(key, basestring) else key, getUnicode(value)) for (key, value) in responseHeaders.items()])
logHTTPTraffic(requestMsg, "%s%s\n\n%s" % (responseMsg, logHeaders, page))
logHTTPTraffic(requestMsg, "%s%s\n\n%s" % (responseMsg, logHeaders, page if isinstance(page, unicode) else getUnicode(page)))
if conf.verbose <= 5:
responseMsg += getUnicode(logHeaders)
@ -358,7 +358,7 @@ class Connect:
responseMsg += "[#%d] (%d %s):\n" % (threadData.lastRequestUID, code, status)
if responseHeaders:
logHeaders = "\n".join(["%s: %s" % (key.capitalize() if isinstance(key, basestring) else key, getUnicode(value)) for (key, value) in responseHeaders.items()])
logHTTPTraffic(requestMsg, "%s%s\n\n%s" % (responseMsg, logHeaders, page))
logHTTPTraffic(requestMsg, "%s%s\n\n%s" % (responseMsg, logHeaders, page if isinstance(page, unicode) else getUnicode(page)))
if conf.verbose <= 5:
responseMsg += getUnicode(logHeaders)