mirror of https://github.com/django/django.git
[py3] Fixed a regression introduced in fcc8de0598
.
Thanks George Marshall for the report.
This commit is contained in:
parent
5c79dd5865
commit
d739d531a1
|
@ -202,7 +202,7 @@ class WSGIRequestHandler(simple_server.WSGIRequestHandler, object):
|
|||
def run(addr, port, wsgi_handler, ipv6=False, threading=False):
|
||||
server_address = (addr, port)
|
||||
if threading:
|
||||
httpd_cls = type('WSGIServer', (socketserver.ThreadingMixIn, WSGIServer), {})
|
||||
httpd_cls = type(str('WSGIServer'), (socketserver.ThreadingMixIn, WSGIServer), {})
|
||||
else:
|
||||
httpd_cls = WSGIServer
|
||||
httpd = httpd_cls(server_address, WSGIRequestHandler, ipv6=ipv6)
|
||||
|
|
Loading…
Reference in New Issue