diff --git a/docs/differences.md b/docs/differences.md index 50d05b49430a511e76d2fcb1b51ca3cb85b60c0b..e1788cd7a813bf02be5bac24d4c636c092e4a71d 100644 --- a/docs/differences.md +++ b/docs/differences.md @@ -34,7 +34,6 @@ ## General Fixes: - 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 2e90bf0f7d2d589afa1a6333da273515e59646a6..41ff692e9c20bd67cac4190cd5d0c01b15f14d4e 100644 --- a/src/service/sending/send.rs +++ b/src/service/sending/send.rs @@ -729,8 +729,9 @@ fn sign_request<T>(dest: &ServerName, http_request: &mut http::Request<Vec<u8>>) 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 ))