Compare commits

..

No commits in common. "939ae84a105f904a53cfcb0b349bc42890ea9b06" and "a6581455e76aea341ddd082fc32b90c330c82c13" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View file

@ -89,7 +89,7 @@ fn main() {
while let Some(edit_code) = edit_codes.next() {
match edit_paste(&client, &csrf_data, &edit_code, PASTE_NAME) {
Ok(_) => {
println!("Success, found edit code: {edit_code}");
println!("Paste deleted successfully with edit code: {edit_code}");
return;
}
Err(e) => match e {

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 == "/".to_owned() + paste_name {
if location == "/" {
return Ok(());
}
}