From 45c9edb176f8b5544f6c7f515704f462eec00b46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com> Date: Wed, 24 Oct 2012 18:14:01 +0200 Subject: [PATCH] Force Content-Type everywhere. --- master/product/Vifib/Tool/SlapTool.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/master/product/Vifib/Tool/SlapTool.py b/master/product/Vifib/Tool/SlapTool.py index 260ba7359..44d5645ae 100644 --- a/master/product/Vifib/Tool/SlapTool.py +++ b/master/product/Vifib/Tool/SlapTool.py @@ -162,7 +162,7 @@ class SlapTool(BaseTool): .getCachePluginList()[0] def _getCacheComputerInformation(self, computer_id, user): - self.REQUEST.response.setHeader('Content-Type', 'text/xml') + self.REQUEST.response.setHeader('Content-Type', 'text/xml; charset=utf-8') slap_computer = Computer(computer_id) parent_uid = self._getComputerUidByReference(computer_id) @@ -225,7 +225,7 @@ class SlapTool(BaseTool): user_document = _assertACI(self.getPortalObject().portal_catalog.unrestrictedGetResultValue( reference=user, portal_type=['Person', 'Computer', 'Software Instance'])) user_type = user_document.getPortalType() - self.REQUEST.response.setHeader('Content-Type', 'text/xml') + self.REQUEST.response.setHeader('Content-Type', 'text/xml; charset=utf-8') slap_computer = Computer(computer_id) parent_uid = self._getComputerUidByReference(computer_id) @@ -297,7 +297,7 @@ class SlapTool(BaseTool): 'getComputerPartitionCertificate') def getComputerPartitionCertificate(self, computer_id, computer_partition_id): """Method to fetch certificate""" - self.REQUEST.response.setHeader('Content-Type', 'text/xml') + self.REQUEST.response.setHeader('Content-Type', 'text/xml; charset=utf-8') software_instance = self._getSoftwareInstanceForComputerPartition( computer_id, computer_partition_id) certificate_dict = dict( -- 2.30.9