web/request.py
changeset 8752 e19f4bba89cd
parent 8732 0d9c8f5eb285
child 8889 be91151107f6
--- a/web/request.py	Thu Jan 17 14:55:07 2013 +0100
+++ b/web/request.py	Tue Mar 12 12:34:07 2013 +0100
@@ -23,6 +23,7 @@
 import random
 import base64
 import urllib
+from StringIO import StringIO
 from hashlib import sha1 # pylint: disable=E0611
 from Cookie import SimpleCookie
 from calendar import timegm
@@ -114,6 +115,8 @@
             self._headers_in.addRawHeader(k, v)
         #: form parameters
         self.setup_params(form)
+        #: received body
+        self.content = StringIO()
         #: dictionary that may be used to store request data that has to be
         #: shared among various components used to publish the request (views,
         #: controller, application...)