# HG changeset patch # User paulb # Date 1114967027 0 # Node ID 7da486eb3a21186371f302bdfa165f138a83d668 # Parent a6ed8b165e9e28cfb52fac4adc84fcc27d163457 [project @ 2005-05-01 17:03:47 by paulb] Fixed (or improved) access to the request stream in order to permit uploads. diff -r a6ed8b165e9e -r 7da486eb3a21 WebStack/Zope.py --- a/WebStack/Zope.py Sun May 01 13:57:03 2005 +0000 +++ b/WebStack/Zope.py Sun May 01 17:03:47 2005 +0000 @@ -60,11 +60,16 @@ """ Returns the request stream for the transaction. + + NOTE: This method actually rewinds to the start of the stream, since + NOTE: Zope likes to read everything automatically. """ # NOTE: Possibly not safe. - return self.request.stdin + stdin = self.request.stdin + stdin.seek(0) + return stdin def get_request_method(self):