mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 07:25:44 +01:00
added version to user-agent header
This commit is contained in:
@@ -279,7 +279,8 @@ public class URLHttpClient implements HttpClient
|
||||
connection = url.openConnection();
|
||||
}
|
||||
|
||||
connection.setRequestProperty(HEADER_USERAGENT, HEADER_USERAGENT_VALUE);
|
||||
connection.setRequestProperty(
|
||||
HEADER_USERAGENT, HEADER_USERAGENT_VALUE.concat(context.getVersion()));
|
||||
|
||||
return connection;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user