Compare commits
	
		
			2 commits
		
	
	
		
			a6581455e7
			...
			939ae84a10
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 939ae84a10 | |||
| cfafabc3d8 | 
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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!("Paste deleted successfully with edit code: {edit_code}");
 | 
			
		||||
                println!("Success, found edit code: {edit_code}");
 | 
			
		||||
                return;
 | 
			
		||||
            }
 | 
			
		||||
            Err(e) => match e {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue