mirror of
https://github.com/mikedilger/chorus.git
synced 2026-11-19 15:24:25 +00:00
Permit no slash in management auth URL handling
A slash is appended to the `base_url`, however most NIP-98 clients sign the URL without the slash.
This commit is contained in:
parent
411f16ad18
commit
ef0553b0eb
@ -89,7 +89,7 @@ pub async fn check_auth(request: Request<Incoming>) -> Result<(Pubkey, Value), E
|
||||
format!("{}", uri)
|
||||
};
|
||||
|
||||
if actual_url != auth_url {
|
||||
if actual_url.trim_end_matches('/') != auth_url.trim_end_matches('/') {
|
||||
return s_err(&format!(
|
||||
"Authorization event URL {} does not match requqest URL {}",
|
||||
auth_url, actual_url
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user