mirror of
				https://github.com/SSLMate/certspotter.git
				synced 2025-07-03 10:47:17 +02:00 
			
		
		
		
	logclient: don't send User-Agent
This commit is contained in:
		
							parent
							
								
									936a1ca8ed
								
							
						
					
					
						commit
						5365450965
					
				@ -188,6 +188,7 @@ retry:
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return fmt.Errorf("%s %s: error creating request: %w", method, uri, err)
 | 
			
		||||
	}
 | 
			
		||||
	req.Header.Set("User-Agent", "") // Don't send a User-Agent to make life harder for malicious logs
 | 
			
		||||
	resp, err := c.httpClient.Do(req)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		if c.shouldRetry(ctx, numRetries, nil) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user