changeset 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 fe08a5c95b27
children 841a595bee5a
files src/server/server.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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