Commit a2cc3b4b authored by Denis Bilenko's avatar Denis Bilenko

pywsgi: rename HttpProtocol to WSGIHandler

parent 728b8b9b
...@@ -137,7 +137,7 @@ class Input(object): ...@@ -137,7 +137,7 @@ class Input(object):
yield line yield line
class HttpProtocol(BaseHTTPServer.BaseHTTPRequestHandler): class WSGIHandler(BaseHTTPServer.BaseHTTPRequestHandler):
protocol_version = 'HTTP/1.1' protocol_version = 'HTTP/1.1'
def handle_one_request(self): def handle_one_request(self):
...@@ -331,7 +331,7 @@ class HttpProtocol(BaseHTTPServer.BaseHTTPRequestHandler): ...@@ -331,7 +331,7 @@ class HttpProtocol(BaseHTTPServer.BaseHTTPRequestHandler):
class WSGIServer(StreamServer): class WSGIServer(StreamServer):
"""A WSGI server based on :class:`StreamServer` that supports HTTPS.""" """A WSGI server based on :class:`StreamServer` that supports HTTPS."""
handler_class = HttpProtocol handler_class = WSGIHandler
base_env = {'GATEWAY_INTERFACE': 'CGI/1.1', base_env = {'GATEWAY_INTERFACE': 'CGI/1.1',
'SERVER_SOFTWARE': 'gevent/%d.%d Python/%d.%d' % (gevent.version_info[:2] + sys.version_info[:2]), 'SERVER_SOFTWARE': 'gevent/%d.%d Python/%d.%d' % (gevent.version_info[:2] + sys.version_info[:2]),
'SCRIPT_NAME': '', 'SCRIPT_NAME': '',
......
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