Commit 74e34f58 authored by Vincent Pelletier's avatar Vincent Pelletier

http, http_wsgibase: Update a few docstrings.

parent 5ddb439a
...@@ -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)
......
...@@ -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 = {}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment