Parcourir la source

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

Mike Naberezny il y a 14 ans
Parent
commit
a4a10f4ee8
2 fichiers modifiés avec 5 ajouts et 1 suppressions
  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)