mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-10-30 10:05:58 +01:00
fix review findings
This commit is contained in:
@@ -44,36 +44,30 @@ public class GitUserAgentProvider implements UserAgentProvider {
|
||||
private static final String PREFIX_JGIT = "jgit/";
|
||||
|
||||
@VisibleForTesting
|
||||
static final UserAgent JGIT = UserAgent.builder("JGit")
|
||||
static final UserAgent JGIT = UserAgent.scmClient("JGit")
|
||||
.browser(false)
|
||||
.scmClient(true)
|
||||
.basicAuthenticationCharset(Charsets.UTF_8)
|
||||
.build();
|
||||
|
||||
private static final String PREFIX_REGULAR = "git/";
|
||||
|
||||
@VisibleForTesting
|
||||
static final UserAgent GIT = UserAgent.builder("Git")
|
||||
static final UserAgent GIT = UserAgent.scmClient("Git")
|
||||
.browser(false)
|
||||
.scmClient(true)
|
||||
.basicAuthenticationCharset(Charsets.UTF_8)
|
||||
.build();
|
||||
|
||||
private static final String PREFIX_LFS = "git-lfs/";
|
||||
|
||||
@VisibleForTesting
|
||||
static final UserAgent GIT_LFS = UserAgent.builder("Git Lfs")
|
||||
.browser(false)
|
||||
.scmClient(true)
|
||||
static final UserAgent GIT_LFS = UserAgent.scmClient("Git Lfs")
|
||||
.basicAuthenticationCharset(Charsets.UTF_8)
|
||||
.build();
|
||||
|
||||
private static final String SUFFIX_MSYSGIT = "msysgit";
|
||||
|
||||
@VisibleForTesting
|
||||
static final UserAgent MSYSGIT = UserAgent.builder("msysGit")
|
||||
.browser(false)
|
||||
.scmClient(true)
|
||||
static final UserAgent MSYSGIT = UserAgent.scmClient("msysGit")
|
||||
.basicAuthenticationCharset(Charsets.UTF_8)
|
||||
.build();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user