Commit 9a58e4df authored by Aurel's avatar Aurel Committed by Jérome Perrin

Zope4 add charset=utf-8 in header

parent e0fd1cd5
......@@ -201,7 +201,8 @@ class TestFormPrintoutAsODG(TestFormPrintoutMixin):
content_xml = builder.extract("content.xml")
self.assertTrue(content_xml.find("call!") > 0)
# when just call FormPrintout, it does not change content-type
self.assertEqual(request.RESPONSE.getHeader('content-type'), 'text/html')
# Zope4 add charset=utf-8
self.assertTrue('text/html' in request.RESPONSE.getHeader('content-type'))
self._validate(odf_document)
# 5. Normal case: utf-8 string
......
......@@ -199,7 +199,8 @@ class TestFormPrintoutAsODT(TestFormPrintoutMixin):
builder = OOoBuilder(odf_document)
content_xml = builder.extract("content.xml")
self.assertTrue(content_xml.find("call!") > 0)
self.assertEqual(request.RESPONSE.getHeader('content-type'), 'text/html')
# Zope4 add charset=utf-8
self.assertTrue('text/html' in request.RESPONSE.getHeader('content-type'))
self._validate(odf_document)
# 5. Normal case: utf-8 string
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment