summary refs log tree commit diff
path: root/tests/rest
diff options
context:
space:
mode:
authorOlivier 'reivilibre <oliverw@matrix.org>2024-07-30 17:10:46 +0100
committerOlivier 'reivilibre <oliverw@matrix.org>2024-07-30 17:10:46 +0100
commit53db8a914e0fe53c9d888f4edce534966ec8c273 (patch)
tree55088c55dddbcec85300298676b3aa47a3e09b29 /tests/rest
parentBump ruff from 0.5.4 to 0.5.5 (#17494) (diff)
parentAdd bold emphasis to some parts of the changelog (diff)
downloadsynapse-53db8a914e0fe53c9d888f4edce534966ec8c273.tar.xz
Merge branch 'master' into develop
Diffstat (limited to 'tests/rest')
-rw-r--r--tests/rest/client/test_login.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/rest/client/test_login.py b/tests/rest/client/test_login.py
index 3fb77fd9dd..2b1e44381b 100644
--- a/tests/rest/client/test_login.py
+++ b/tests/rest/client/test_login.py
@@ -969,9 +969,8 @@ class CASTestCase(unittest.HomeserverTestCase):
         # Test that the response is HTML.
         self.assertEqual(channel.code, 200, channel.result)
         content_type_header_value = ""
-        for header in channel.result.get("headers", []):
-            if header[0] == b"Content-Type":
-                content_type_header_value = header[1].decode("utf8")
+        for header in channel.headers.getRawHeaders("Content-Type", []):
+            content_type_header_value = header
 
         self.assertTrue(content_type_header_value.startswith("text/html"))