瀏覽代碼

respondCustom doesn't work as UTF-8

Darren Ranalli 15 年之前
父節點
當前提交
0e94724790
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      direct/src/http/WebRequest.py

+ 1 - 1
direct/src/http/WebRequest.py

@@ -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"