mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 01:34:27 +00:00 
			
		
		
		
	Do not set Accept header twice (#28598)
				
					
				
			Revert #28550 Don't add the `Accept` header twice.
This commit is contained in:
		@@ -79,10 +79,7 @@ func (c *HTTPClient) batch(ctx context.Context, operation string, objects []Poin
 | 
				
			|||||||
		return nil, err
 | 
							return nil, err
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	req, err := createRequest(ctx, http.MethodPost, url, map[string]string{
 | 
						req, err := createRequest(ctx, http.MethodPost, url, map[string]string{"Content-Type": MediaType}, payload)
 | 
				
			||||||
		"Content-Type": MediaType,
 | 
					 | 
				
			||||||
		"Accept":       MediaType,
 | 
					 | 
				
			||||||
	}, payload)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
		return nil, err
 | 
							return nil, err
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user