Commits

jomae  committed 66e4e27

0.13dev: Merged from 0.12-stable.

  • Participants
  • Parent commits 7edebe1
  • Branches trunk

Comments (0)

Files changed (1)

File trac/web/wsgi.py

         environ['wsgi.url_scheme'] = 'http'
         if environ.get('HTTPS', '').lower() in ('yes', 'on', '1'):
             environ['wsgi.url_scheme'] = 'https'
+        elif environ.get('HTTP_X_FORWARDED_PROTO', '').lower() == 'https':
+            environ['wsgi.url_scheme'] = 'https'
         environ['wsgi.input'] = stdin
         environ['wsgi.errors'] = stderr
         environ['wsgi.multithread'] = self.wsgi_multithread