SF bug #543318 (Frank J. Tobin).

In DatagramRequestHandler.setup(), the wfile initialization should be
StringIO.StringIO(), not StringIO.StringIO(slf.packet).

Bugfix candidate (all the way back to Python 1.5.2 :-).
This commit is contained in:
Guido van Rossum 2002-04-15 00:36:48 +00:00
parent a2da305211
commit beae477767
1 changed files with 1 additions and 1 deletions

View File

@ -570,7 +570,7 @@ def setup(self):
import StringIO
self.packet, self.socket = self.request
self.rfile = StringIO.StringIO(self.packet)
self.wfile = StringIO.StringIO(self.packet)
self.wfile = StringIO.StringIO()
def finish(self):
self.socket.sendto(self.wfile.getvalue(), self.client_address)