wsgi/request.py
changeset 9741 b6cc9da206df
parent 9737 c6f47e635845
child 9755 566d90bdc565
equal deleted inserted replaced
9740:c0239d8ae742 9741:b6cc9da206df
   125 
   125 
   126     def get_full_path(self):
   126     def get_full_path(self):
   127         return '%s%s' % (self.path, self.environ.get('QUERY_STRING', '') and ('?' + self.environ.get('QUERY_STRING', '')) or '')
   127         return '%s%s' % (self.path, self.environ.get('QUERY_STRING', '') and ('?' + self.environ.get('QUERY_STRING', '')) or '')
   128 
   128 
   129     def is_secure(self):
   129     def is_secure(self):
   130         return 'wsgi.url_scheme' in self.environ \
   130         return self.environ['wsgi.url_scheme'] == 'https'
   131             and self.environ['wsgi.url_scheme'] == 'https'
       
   132 
   131 
   133     def get_posted_data(self):
   132     def get_posted_data(self):
   134         # The WSGI spec says 'QUERY_STRING' may be absent.
   133         # The WSGI spec says 'QUERY_STRING' may be absent.
   135         post = qs2dict(self.environ.get('QUERY_STRING', ''))
   134         post = qs2dict(self.environ.get('QUERY_STRING', ''))
   136         files = None
   135         files = None