Mercurial > libervia-web
diff src/server/server.py @ 1012:6b573b4b5bb0
server: set default content type to text/html in utf-8
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 19 Jan 2018 17:59:18 +0100 |
parents | 1593e00078d2 |
children | 34240d08f682 |
line wrap: on
line diff
--- a/src/server/server.py Fri Jan 12 22:04:33 2018 +0100 +++ b/src/server/server.py Fri Jan 19 17:59:18 2018 +0100 @@ -1502,6 +1502,7 @@ self.putChild('test', web_util.Redirect('/libervia_test.html')) + server.Request.defaultContentType = 'text/html; charset=utf-8' wrapped = web_resource.EncodingResourceWrapper(root, [server.GzipEncoderFactory()]) self.site = server.Site(wrapped) self.site.sessionFactory = LiberviaSession