Add an option for extending the user agent header
This is useful e.g. for distinguishing traffic to a binary cache (e.g. certain machines can use a different tag in the user agent).
This commit is contained in:
		
							parent
							
								
									62d476c7ee
								
							
						
					
					
						commit
						510bc1735b
					
				
					 2 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -318,6 +318,9 @@ public:
 | 
			
		|||
 | 
			
		||||
    Setting<unsigned long> connectTimeout{this, 0, "connect-timeout",
 | 
			
		||||
        "Timeout for connecting to servers during downloads. 0 means use curl's builtin default."};
 | 
			
		||||
 | 
			
		||||
    Setting<std::string> userAgentSuffix{this, "", "user-agent-suffix",
 | 
			
		||||
        "String appended to the user agent in HTTP requests."};
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue