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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
caucase
Commits
74e34f58
Commit
74e34f58
authored
Oct 25, 2017
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http, http_wsgibase: Update a few docstrings.
parent
5ddb439a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
caucase/http.py
caucase/http.py
+6
-1
caucase/http_wsgibase.py
caucase/http_wsgibase.py
+2
-3
No files found.
caucase/http.py
View file @
74e34f58
...
@@ -74,10 +74,15 @@ class CaucaseWSGIRequestHandler(WSGIRequestHandler):
...
@@ -74,10 +74,15 @@ class CaucaseWSGIRequestHandler(WSGIRequestHandler):
class
CaucaseSSLWSGIRequestHandler
(
CaucaseWSGIRequestHandler
):
class
CaucaseSSLWSGIRequestHandler
(
CaucaseWSGIRequestHandler
):
"""
"""
Add SSL_CLIENT_CERT to environ when client has sent a certificate.
Add SSL-specific entries to environ:
- HTTPS=on
- SSL_CLIENT_CERT when client has sent a certificate.
"""
"""
ssl_client_cert_serial
=
'-'
ssl_client_cert_serial
=
'-'
def
get_environ
(
self
):
def
get_environ
(
self
):
"""
Populate environment.
"""
environ
=
CaucaseWSGIRequestHandler
.
get_environ
(
self
)
environ
=
CaucaseWSGIRequestHandler
.
get_environ
(
self
)
environ
[
'HTTPS'
]
=
'on'
environ
[
'HTTPS'
]
=
'on'
client_cert_der
=
self
.
request
.
getpeercert
(
binary_form
=
True
)
client_cert_der
=
self
.
request
.
getpeercert
(
binary_form
=
True
)
...
...
caucase/http_wsgibase.py
View file @
74e34f58
...
@@ -25,8 +25,7 @@ from wsgiref.simple_server import ServerHandler
...
@@ -25,8 +25,7 @@ from wsgiref.simple_server import ServerHandler
class
CleanServerHandler
(
ServerHandler
):
class
CleanServerHandler
(
ServerHandler
):
"""
"""
Do not include OS environment variables in each request's WSGI environment.
- Do not include OS environment variables in each request's WSGI environment.
Seriously, what the fsck, python ?
Seriously, what the fsck, python ?
"""
"""
os_environ
=
{}
os_environ
=
{}
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