federation/serverauth: fix URI passed to signableRequest (#381)
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run

This commit is contained in:
nexy7574 2025-05-26 20:37:28 +01:00 committed by GitHub
commit c7fbfd150f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -231,7 +231,7 @@ func (sa *ServerAuth) Authenticate(r *http.Request) (*http.Request, *mautrix.Res
}
err = (&signableRequest{
Method: r.Method,
URI: r.URL.RawPath,
URI: r.URL.EscapedPath(),
Origin: parsed.Origin,
Destination: destination,
Content: reqBody,