mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +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 = url.openConnection();
|
||||||
}
|
}
|
||||||
|
|
||||||
connection.setRequestProperty(HEADER_USERAGENT, HEADER_USERAGENT_VALUE);
|
connection.setRequestProperty(
|
||||||
|
HEADER_USERAGENT, HEADER_USERAGENT_VALUE.concat(context.getVersion()));
|
||||||
|
|
||||||
return connection;
|
return connection;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user