feat(federation): add destination field to X-Matrix header

This commit is contained in:
Matthias Ahouansou 2024-04-30 09:31:44 +01:00
parent b4a60c3f9a
commit dfe2916357
No known key found for this signature in database

View file

@ -223,8 +223,9 @@ where
http_request.headers_mut().insert(
AUTHORIZATION,
HeaderValue::from_str(&format!(
"X-Matrix origin={},key=\"{}\",sig=\"{}\"",
"X-Matrix origin=\"{}\",destination=\"{}\",key=\"{}\",sig=\"{}\"",
services().globals.server_name(),
destination,
s.0,
s.1
))