web/request.py
changeset 10618 3274a1648c7e
parent 10612 84468b90e9c1
child 10662 10942ed172de
--- a/web/request.py	Fri Sep 11 17:40:23 2015 +0200
+++ b/web/request.py	Mon Sep 14 18:56:29 2015 +0200
@@ -22,11 +22,11 @@
 import time
 import random
 import base64
-from StringIO import StringIO
 from hashlib import sha1 # pylint: disable=E0611
 from calendar import timegm
 from datetime import date, datetime
 from warnings import warn
+from io import BytesIO
 
 from six import string_types
 from six.moves import http_client
@@ -143,7 +143,7 @@
         #: form parameters
         self.setup_params(form)
         #: received body
-        self.content = StringIO()
+        self.content = BytesIO()
         # prepare output header
         #: Header used for the final response
         self.headers_out = Headers()