wsgi/request.py
changeset 5155 1dea6e0fdfc1
parent 4212 ab6573088b4a
child 5423 e15abfdcce38
equal deleted inserted replaced
5125:eaec839ad3fe 5155:1dea6e0fdfc1
    36         https = environ.get("HTTPS") in ('yes', 'on', '1')
    36         https = environ.get("HTTPS") in ('yes', 'on', '1')
    37         self._base_url = base_url or self.instance_uri()
    37         self._base_url = base_url or self.instance_uri()
    38         post, files = self.get_posted_data()
    38         post, files = self.get_posted_data()
    39         super(CubicWebWsgiRequest, self).__init__(vreg, https, post)
    39         super(CubicWebWsgiRequest, self).__init__(vreg, https, post)
    40         if files is not None:
    40         if files is not None:
    41             for fdef in files.itervalues():
    41             for key, (name, _, stream) in files.iteritems():
    42                 fdef[0] = unicode(fdef[0], self.encoding)
    42                 name = unicode(name, self.encoding)
    43             self.form.update(files)
    43                 self.form[key] = (name, stream)
    44         # prepare output headers
    44         # prepare output headers
    45         self.headers_out = {}
    45         self.headers_out = {}
    46 
    46 
    47     def __repr__(self):
    47     def __repr__(self):
    48         # Since this is called as part of error handling, we need to be very
    48         # Since this is called as part of error handling, we need to be very