fix http methods
This commit is contained in:
		
							parent
							
								
									194a1b5e36
								
							
						
					
					
						commit
						63c6dc9f7f
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -153,12 +153,12 @@ impl Forgejo {
 | 
			
		|||
 | 
			
		||||
    fn delete(&self, path: &str) -> reqwest::RequestBuilder {
 | 
			
		||||
        let url = self.url.join("api/v1/").unwrap().join(path).unwrap();
 | 
			
		||||
        self.client.post(url)
 | 
			
		||||
        self.client.delete(url)
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    fn patch(&self, path: &str) -> reqwest::RequestBuilder {
 | 
			
		||||
        let url = self.url.join("api/v1/").unwrap().join(path).unwrap();
 | 
			
		||||
        self.client.post(url)
 | 
			
		||||
        self.client.patch(url)
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    async fn execute(&self, request: Request) -> Result<reqwest::Response, ForgejoError> {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue