From cfafabc3d82c1e3f96a2bbe8205d06cb9610b51c Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Thu, 18 Apr 2024 22:22:16 +0200 Subject: [PATCH] Fix success detection --- src/rentry.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rentry.rs b/src/rentry.rs index 58ee54c..e9496f4 100644 --- a/src/rentry.rs +++ b/src/rentry.rs @@ -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(()); } }