1
0
Fork 0
mirror of https://github.com/element-hq/synapse.git synced 2025-03-19 22:15:49 +00:00
synapse/tests/rest
Quentin Gliech b9276e21ee
Fix MSC4108 'rendez-vous' responses with some reverse proxy in the front of Synapse (#18178)
MSC4108 relies on ETag to determine if something has changed on the
rendez-vous channel.
Strong and correct ETag comparison works if the response body is
bit-for-bit identical, which isn't the case if a proxy in the middle
compresses the response on the fly.

This adds a `no-transform` directive to the `Cache-Control` header,
which tells proxies not to transform the response body.

Additionally, some proxies (nginx) will switch to `Transfer-Encoding:
chunked` if it doesn't know the Content-Length of the response, and
'weakening' the ETag if that's the case. I've added `Content-Length`
headers to all responses, to hopefully solve that.

This basically fixes QR-code login when nginx or cloudflare is involved,
with gzip/zstd/deflate compression enabled.
2025-02-25 11:34:33 +01:00
..
admin Disable room list publication by default (#18175) 2025-02-24 12:06:16 +00:00
client Fix MSC4108 'rendez-vous' responses with some reverse proxy in the front of Synapse (#18178) 2025-02-25 11:34:33 +01:00
key Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
media Enable authenticated media by default (#17889) 2024-11-20 14:48:22 +00:00
synapse An federation whitelist query endpoint extension (#16848) 2024-05-13 19:38:45 +00:00
__init__.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
test_health.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
test_well_known.py Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00