Bypass mime-type map in python3 env

This commit is contained in:
Zhou Chaolin 2018-04-16 01:45:12 +08:00
parent a69d558fe3
commit 3e46b41caa
1 changed files with 13 additions and 12 deletions

View File

@ -97,6 +97,7 @@ class WebSockifyRequestHandler(WebSocketRequestHandler, SimpleHTTPRequestHandler
if self.logger is None:
self.logger = WebSockifyServer.get_logger()
if sys.version_info[0] < 3:
self.extensions_map = {
'.manifest': 'text/cache-manifest',
'.html': 'text/html',