Merge lp:~canonical-ca-hackers/ubuntu-webcatalog/add-use-https into lp:ubuntu-webcatalog
Proposed by
Łukasz Czyżykowski
Status: | Merged |
---|---|
Approved by: | Anthony Lenton |
Approved revision: | 94 |
Merged at revision: | 95 |
Proposed branch: | lp:~canonical-ca-hackers/ubuntu-webcatalog/add-use-https |
Merge into: | lp:ubuntu-webcatalog |
Diff against target: |
21 lines (+4/-0) 1 file modified
src/webcatalog/wsgi.py (+4/-0) |
To merge this branch: | bzr merge lp:~canonical-ca-hackers/ubuntu-webcatalog/add-use-https |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Canonical Consumer Applications Hackers | Pending | ||
Review via email: mp+100151@code.launchpad.net |
Commit message
Add os.environ['HTTPS'] to wsgi app creation when should_serve_https config is on.
Unofortunately there's no way of actually testing that, at least nothing I come up with.
Description of the change
Adds code to set os.environ['HTTPS'] = 'on' as this is where django checks for request.is_secure()
To post a comment you must log in.