add destination to X-Matrix Authorization outbound requests

we were already validating this for inbound requests

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry
2024-05-02 02:26:11 -04:00
committed by June
parent a6cf5cfd8b
commit fa0bdd431b
2 changed files with 3 additions and 3 deletions
+3 -2
View File
@@ -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
))