# HG changeset patch
# User Julien Cristau <julien.cristau@logilab.fr>
# Date 1399384779 -7200
# Node ID c6f47e635845fc05c5425acad246a512527339ef
# Parent  e0b3fcf1c205ca1aa464bf680ba73624a3155d2a
[wsgi] look at wsgi.url_scheme to decide if we're on https

The server/gateway is supposed to fill it in for us.

diff -r e0b3fcf1c205 -r c6f47e635845 wsgi/request.py
--- a/wsgi/request.py	Mon Mar 24 10:34:58 2014 +0100
+++ b/wsgi/request.py	Tue May 06 15:59:39 2014 +0200
@@ -59,7 +59,7 @@
 
         headers_in = dict((normalize_header(k[5:]), v) for k, v in self.environ.items()
                           if k.startswith('HTTP_'))
-        https = environ.get("HTTPS") in ('yes', 'on', '1')
+        https = self.is_secure()
         post, files = self.get_posted_data()
 
         super(CubicWebWsgiRequest, self).__init__(vreg, https, post,