Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caucase
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
caucase
Commits
18a817e4
Commit
18a817e4
authored
Oct 24, 2017
by
Romain Courteaud
🐸
Committed by
Vincent Pelletier
Oct 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http: Populate HTTPS environment variable.
So "wsgi.url_scheme" gets the correct value.
parent
dd7ed29e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
caucase/http.py
caucase/http.py
+1
-0
No files found.
caucase/http.py
View file @
18a817e4
...
...
@@ -79,6 +79,7 @@ class CaucaseSSLWSGIRequestHandler(CaucaseWSGIRequestHandler):
ssl_client_cert_serial
=
'-'
def
get_environ
(
self
):
environ
=
CaucaseWSGIRequestHandler
.
get_environ
(
self
)
environ
[
'HTTPS'
]
=
'on'
client_cert_der
=
self
.
request
.
getpeercert
(
binary_form
=
True
)
if
client_cert_der
is
not
None
:
cert
=
x509
.
load_der_x509_certificate
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment