Merge branch 'x-matrix-destination-header' into 'next'

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

See merge request famedly/conduit!660
This commit is contained in:
Matthias Ahouansou 2024-05-02 06:59:52 +00:00
commit b69a74961b

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
))