From dfe2916357888d5926b3237e5c7f360a2369d29d Mon Sep 17 00:00:00 2001 From: Matthias Ahouansou Date: Tue, 30 Apr 2024 09:31:44 +0100 Subject: [PATCH] feat(federation): add destination field to X-Matrix header --- src/api/server_server.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/server_server.rs b/src/api/server_server.rs index b25b1313..ef6ab4af 100644 --- a/src/api/server_server.rs +++ b/src/api/server_server.rs @@ -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 ))