Fix success detection

This commit is contained in:
ItsDrike 2024-04-18 22:22:16 +02:00
parent a6581455e7
commit cfafabc3d8
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -150,7 +150,7 @@ pub fn edit_paste(
if res.status().is_redirection() {
let location = res.headers().get("Location").unwrap().to_str().unwrap();
if location == "/" {
if location == "/".to_owned() + paste_name {
return Ok(());
}
}