http: Encode the hostname to a str

This commit is contained in:
Stein Magnus Jodal 2012-11-09 10:06:15 +01:00
parent 509c7c82ea
commit 5d8929986d

View File

@ -20,7 +20,8 @@ class HttpFrontend(pykka.ThreadingActor):
super(HttpFrontend, self).__init__()
self.core = core
cherrypy.config.update({
'server.socket_host': settings.HTTP_SERVER_HOSTNAME,
'server.socket_host':
settings.HTTP_SERVER_HOSTNAME.encode('utf-8'),
'server.socket_port': settings.HTTP_SERVER_PORT,
})
app = cherrypy.tree.mount(Root(self.core), '/')