WIP: forgejo: ???
This commit is contained in:
parent
74cf9a5d53
commit
a9b35bdac5
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ impl git::ForgeLike for ForgeJo {
|
||||||
tracing::info!(?authorization, %expected, "is message authorised?");
|
tracing::info!(?authorization, %expected, "is message authorised?");
|
||||||
authorization
|
authorization
|
||||||
.and_then(|header| header.strip_prefix("Basic ").map(|v| v.to_owned()))
|
.and_then(|header| header.strip_prefix("Basic ").map(|v| v.to_owned()))
|
||||||
.and_then(|value| config::WebhookAuth::new(value.as_str()).ok())
|
.and_then(|value| config::WebhookAuth::try_new(value.as_str()).ok())
|
||||||
.map(|auth| &auth == expected)
|
.map(|auth| &auth == expected)
|
||||||
.unwrap_or(false)
|
.unwrap_or(false)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue