From 8a403fed7c846ce5bcfc4204661ff30cf57f4f61 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Thu, 25 Aug 2022 12:01:48 +0200
Subject: [PATCH] rapid-cdn: c->h: Really avoid Content-Type modification

Caddy was automat(g)ically adding Content-Type header to the backend
response, but Haproxy does not do it, and change of the servers shall
follow generic approach that not additional information is added to the
response by the CDN.
---
 software/rapid-cdn/test/test.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/software/rapid-cdn/test/test.py b/software/rapid-cdn/test/test.py
index d982adbc9..73157860d 100644
--- a/software/rapid-cdn/test/test.py
+++ b/software/rapid-cdn/test/test.py
@@ -2603,10 +2603,7 @@ class TestSlave(SlaveHttpFrontendTestCase, TestDataMixin, AtsMixin):
       }
     )
 
-    self.assertEqual(
-      'text/xml; charset=utf-8',
-      result.headers['Content-Type']
-    )
+    self.assertNotIn('Content-Type', result.headers)
 
   def test_type_zope_path(self):
     parameter_dict = self.assertSlaveBase('type-zope-path')
-- 
2.30.9