user agents are not longer set to be browsers by default

This commit is contained in:
Konstantin Schaper
2020-10-29 19:51:40 +01:00
parent 5c755cd0c9
commit 62a7ebd4dd
6 changed files with 56 additions and 11 deletions

View File

@@ -49,13 +49,13 @@ public final class SvnUserAgentProvider implements UserAgentProvider
/** TortoiseSVN */
@VisibleForTesting
static final UserAgent TORTOISE_SVN =
UserAgent.builder("TortoiseSVN").browser(false)
UserAgent.builder("TortoiseSVN").browser(false).scmClient(true)
.basicAuthenticationCharset(Charsets.UTF_8).build();
/** Subversion cli client */
@VisibleForTesting
static final UserAgent SVN =
UserAgent.builder("Subversion").browser(false)
UserAgent.builder("Subversion").browser(false).scmClient(true)
.basicAuthenticationCharset(Charsets.UTF_8).build();
//~--- methods --------------------------------------------------------------