diff --git a/docs/differences.md b/docs/differences.md index 50d05b49..e1788cd7 100644 --- a/docs/differences.md +++ b/docs/differences.md @@ -34,7 +34,6 @@ Outgoing typing indicators, outgoing read receipts, **and** outgoing presence! - Return joined member count of rooms for push rules/conditions instead of a hardcoded value of 10 - Make `CONDUIT_CONFIG` optional, relevant for container users that configure only by environment variables and no longer need to set `CONDUIT_CONFIG` to an empty string. - Allow HEAD HTTP requests in CORS for clients (despite not being explicity mentioned in Matrix spec, HTTP spec says all HEAD requests need to behave the same as GET requests, Synapse supports HEAD requests) -- Add missing `destination` key to all `X-Matrix` `Authorization` requests (spec compliance issue) - Resolve and remove some "features" from upstream that result in concurrency hazards, exponential backoff issues, or arbitrary performance limiters - Find more servers for outbound federation `/hierarchy` requests instead of just the room ID server name - Support for suggesting servers to join through at `/_matrix/client/v3/directory/room/{roomAlias}` diff --git a/src/service/sending/send.rs b/src/service/sending/send.rs index 2e90bf0f..41ff692e 100644 --- a/src/service/sending/send.rs +++ b/src/service/sending/send.rs @@ -729,8 +729,9 @@ where http_request.headers_mut().insert( AUTHORIZATION, HeaderValue::from_str(&format!( - "X-Matrix origin={},key=\"{}\",sig=\"{}\"", - services().globals.server_name(), + "X-Matrix origin=\"{}\",destination=\"{}\",key=\"{}\",sig=\"{}\"", + services().globals.config.server_name, + dest, s.0, s.1 ))