瀏覽代碼

Patch bundled Medusa to fix serving web pages over 64K. Fixes #17

Mike Naberezny 14 年之前
父節點
當前提交
a4a10f4ee8
共有 2 個文件被更改,包括 5 次插入1 次删除
  1. 3 0
      CHANGES.txt
  2. 2 1
      src/supervisor/medusa/http_server.py

+ 3 - 0
CHANGES.txt

@@ -9,6 +9,9 @@ Next release
   http://docs.python.org/library/platform.html#platform.node).  
   Patch by Joseph Kondel.
 
+- Fixed a bug in the web interface where pages over 64K would be truncated.
+  Thanks to Drew Perttula and Timothy Jones for reporting this.
+
 3.0a10 (2011-03-30)
 -------------------
 

+ 2 - 1
src/supervisor/medusa/http_server.py

@@ -264,7 +264,8 @@ class http_request:
 
     def push (self, thing):
         if type(thing) == type(''):
-            self.outgoing.append(producers.simple_producer(thing))
+            self.outgoing.append(producers.simple_producer(thing,
+              buffer_size=len(thing)))
         else:
             self.outgoing.append(thing)