mirror of
https://github.com/LemmyNet/activitypub-federation-rust.git
synced 2024-06-10 09:19:34 +00:00
signing_actor: take request by reference
This commit is contained in:
parent
588c41efc9
commit
f068545df8
|
@ -16,7 +16,7 @@ use serde::Deserialize;
|
|||
/// Checks whether the request is signed by an actor of type A, and returns
|
||||
/// the actor in question if a valid signature is found.
|
||||
pub async fn signing_actor<A>(
|
||||
request: HttpRequest,
|
||||
request: &HttpRequest,
|
||||
body: Option<Bytes>,
|
||||
data: &Data<<A as Object>::DataType>,
|
||||
) -> Result<A, <A as Object>::Error>
|
||||
|
|
Loading…
Reference in a new issue