wsgi/request.py
changeset 9737 c6f47e635845
parent 9563 48f0ff3e2a32
child 9741 b6cc9da206df
equal deleted inserted replaced
9736:e0b3fcf1c205 9737:c6f47e635845
    57         safe_copyfileobj(environ['wsgi.input'], self.content, size=length)
    57         safe_copyfileobj(environ['wsgi.input'], self.content, size=length)
    58         self.content.seek(0, 0)
    58         self.content.seek(0, 0)
    59 
    59 
    60         headers_in = dict((normalize_header(k[5:]), v) for k, v in self.environ.items()
    60         headers_in = dict((normalize_header(k[5:]), v) for k, v in self.environ.items()
    61                           if k.startswith('HTTP_'))
    61                           if k.startswith('HTTP_'))
    62         https = environ.get("HTTPS") in ('yes', 'on', '1')
    62         https = self.is_secure()
    63         post, files = self.get_posted_data()
    63         post, files = self.get_posted_data()
    64 
    64 
    65         super(CubicWebWsgiRequest, self).__init__(vreg, https, post,
    65         super(CubicWebWsgiRequest, self).__init__(vreg, https, post,
    66                                                   headers= headers_in)
    66                                                   headers= headers_in)
    67         if files is not None:
    67         if files is not None: