Commit 45c9edb1 authored by Łukasz Nowak's avatar Łukasz Nowak

Force Content-Type everywhere.

parent 25452f88
master alain-message amarisoft binary-sr-error-handling boot/offline cliff-cleanup console cygwin-link-local feat/node-secrets feat/nxdbom feat/openapi feat/schema-buildout feat/slapos-computer-partitions-capabilities-wip feat/standalone-service feat_open_order feature/cgroups feature/format-crumbled feature/manager-cpuset fix/slapos-ansible fix/verify for_testrunner_1 json-api json-api-2022 json-api-slapgrid master-dev message-box netrc-copy proxy slapos-override-env slapproxy-connection-parameter 1.13.0 1.12.0 1.11.0 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.3 1.9.2 1.9.1 1.9.0 1.8.6 1.8.5 1.8.4 1.8.3 1.8.2 1.8.1 1.8.0 1.7.13 1.7.12 1.7.11 1.7.10 1.7.9 1.7.8 1.7.7 1.7.6 1.7.5 1.7.4 1.7.3 1.7.2 1.7.1 1.7.0 1.6.19 1.6.18 1.6.17 1.6.16 1.6.15 1.6.14 1.6.13 1.6.12 1.6.11 1.6.10 1.6.9 1.6.8 1.6.7 1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.12 1.5.11 1.5.10 1.5.9 1.5.8 1.5.7 1.5.6 1.5.5 1.5.4 1.5.3 1.5.2 1.5.1 1.5.0 1.4.28 1.4.27 1.4.26 1.4.25 1.4.24 1.4.23 1.4.22 1.4.21 1.4.20 1.4.19 1.4.17 1.4.16 1.4.15 1.4.14 1.4.12 1.4.11 1.4.10 1.4.9 1.4.8 1.4.7 1.4.6 1.4.5 1.4.4 1.4.3 1.4.2 1.4.1 1.4.0 1.3.18 1.3.17 1.3.16 1.3.15 1.3.14 1.3.13 1.3.12 1.3.11 1.3.10 1.3.9 1.3.8 1.3.7 1.3.6.3 1.3.6.2 1.3.6.1 1.3.6 1.3.5 1.3.4 1.3.3 1.3.2 1.3.1 1.3.0 1.2.4.1 1.2.4 1.2.3.1 1.2.3 1.2.2 1.2.1 1.2.0 1.1.3 1.1.2 1.1.1 1.1.0 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0 1.0.0rc6 1.0.0rc5 1.0.0rc4 1.0.0rc3 1.0.0-rc1 0.35.1 0.34 0.33.1 0.33 v1.8.1 master-20240326 master-20240326+p1 master-20180917
No related merge requests found
......@@ -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(
......
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