diff options
author | reivilibre <oliverw@matrix.org> | 2024-07-30 15:23:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-30 15:23:23 +0100 |
commit | c56b070e6fdc1d3aa3452ea81fd13d0eb9f82aa8 (patch) | |
tree | 288849aca9d50e90b9bdd54490e50fc97874a008 /tests/rest/client/test_login.py | |
parent | 1.111.0 (diff) | |
download | synapse-c56b070e6fdc1d3aa3452ea81fd13d0eb9f82aa8.tar.xz |
Upgrade locked dependency on Twisted to 24.7.0rc1. (#17502)
I also update the tests and HTTP Proxy code to fix it for this new Twisted release. Pulls in fix for https://github.com/twisted/twisted/security/advisories/GHSA-c8m8-j448-xjx7 Signed-off-by: Olivier 'reivilibre <oliverw@matrix.org>
Diffstat (limited to 'tests/rest/client/test_login.py')
-rw-r--r-- | tests/rest/client/test_login.py | 5 |
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")) |