respondCustom doesn't work as UTF-8

This commit is contained in:
Darren Ranalli 2010-07-14 23:37:48 +00:00
parent 62fecd76cb
commit 0e94724790

View File

@ -51,7 +51,7 @@ class WebRequest(object):
msg += "\nCache-Control: max-age=313977290\nExpires: Tue, 02 May 2017 04:08:44 GMT\n"
msg += u"\r\n\r\n%s" % (body)
self.connection.SendThisResponse(encodedUtf8(msg))
self.connection.SendThisResponse(msg)
def timeout(self):
resp = "<html><body>Error 504: Request timed out</body></html>\r\n"