Merge pull request 'regenerate for 201 status code for tags' (#41) from gen-tag-201 into main
Reviewed-on: https://codeberg.org/Cyborus/forgejo-api/pulls/41
This commit is contained in:
		
						commit
						a4c081a770
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -5491,7 +5491,7 @@ impl crate::Forgejo {
 | 
			
		|||
            .build()?;
 | 
			
		||||
        let response = self.execute(request).await?;
 | 
			
		||||
        match response.status().as_u16() {
 | 
			
		||||
            200 => Ok(response.json().await?),
 | 
			
		||||
            201 => Ok(response.json().await?),
 | 
			
		||||
            _ => Err(ForgejoError::UnexpectedStatusCode(response.status())),
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue