mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 21:16:26 +01:00 
			
		
		
		
	
							parent
							
								
									9bf693d98d
								
							
						
					
					
						commit
						6e8762f962
					
				@ -94,7 +94,12 @@ func newJSONRequest[T any](pc payloadConvertor[T], w *webhook_model.Webhook, t *
 | 
			
		||||
		return nil, nil, err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	req, err := http.NewRequest(w.HTTPMethod, w.URL, bytes.NewReader(body))
 | 
			
		||||
	method := w.HTTPMethod
 | 
			
		||||
	if method == "" {
 | 
			
		||||
		method = http.MethodPost
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	req, err := http.NewRequest(method, w.URL, bytes.NewReader(body))
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, nil, err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user