Support --handler-encoding option (#31)
Permit overriding the locale encoding when reading handler files by
specifying a --handler-encoding command-line option.
Update version number to 3.0.2
diff --git a/mod_pywebsocket/websocket_server.py b/mod_pywebsocket/websocket_server.py
index fa24bb9..c9861bc 100644
--- a/mod_pywebsocket/websocket_server.py
+++ b/mod_pywebsocket/websocket_server.py
@@ -89,7 +89,7 @@
# instantiation. Dispatcher can be shared because it is thread-safe.
options.dispatcher = dispatch.Dispatcher(
options.websock_handlers, options.scan_dir,
- options.allow_handlers_outside_root_dir)
+ options.allow_handlers_outside_root_dir, options.handler_encoding)
if options.websock_handlers_map_file:
_alias_handlers(options.dispatcher,
options.websock_handlers_map_file)