Fix success detection
This commit is contained in:
parent
a6581455e7
commit
cfafabc3d8
|
@ -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(());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue