diff --git a/src/NzbDrone.Common/Http/HttpClient.cs b/src/NzbDrone.Common/Http/HttpClient.cs index 1f3dacb82..28ae46c8e 100644 --- a/src/NzbDrone.Common/Http/HttpClient.cs +++ b/src/NzbDrone.Common/Http/HttpClient.cs @@ -25,7 +25,7 @@ namespace NzbDrone.Common.Http public HttpClient(Logger logger) { _logger = logger; - _userAgent = String.Format("NzbDrone/{0} ({1} {2})", + _userAgent = String.Format("Sonarr/{0} ({1} {2})", BuildInfo.Version, OsInfo.Os, OsInfo.Version.ToString(2)); ServicePointManager.DefaultConnectionLimit = 12; @@ -207,7 +207,7 @@ namespace NzbDrone.Common.Http webRequest.TransferEncoding = header.Value.ToString(); break; case "User-Agent": - throw new NotSupportedException("User-Agent other than NzbDrone not allowed."); + throw new NotSupportedException("User-Agent other than Sonarr not allowed."); case "Proxy-Connection": throw new NotImplementedException(); break; diff --git a/src/NzbDrone.Common/Http/HttpProvider.cs b/src/NzbDrone.Common/Http/HttpProvider.cs index 0d6634497..8e2e9c5ce 100644 --- a/src/NzbDrone.Common/Http/HttpProvider.cs +++ b/src/NzbDrone.Common/Http/HttpProvider.cs @@ -24,7 +24,7 @@ namespace NzbDrone.Common.Http public HttpProvider(Logger logger) { _logger = logger; - _userAgent = String.Format("NzbDrone {0}", BuildInfo.Version); + _userAgent = String.Format("Sonarr {0}", BuildInfo.Version); ServicePointManager.Expect100Continue = false; } diff --git a/src/NzbDrone.Core/Rest/RestClientFactory.cs b/src/NzbDrone.Core/Rest/RestClientFactory.cs index 042bfb5f2..af34b54c6 100644 --- a/src/NzbDrone.Core/Rest/RestClientFactory.cs +++ b/src/NzbDrone.Core/Rest/RestClientFactory.cs @@ -13,7 +13,7 @@ namespace NzbDrone.Core.Rest { var restClient = new RestClient(baseUrl); - restClient.UserAgent = String.Format("NzbDrone/{0} (RestSharp/{1}; {2}/{3})", + restClient.UserAgent = String.Format("Sonarr/{0} (RestSharp/{1}; {2}/{3})", BuildInfo.Version, restClient.GetType().Assembly.GetName().Version, OsInfo.Os, OsInfo.Version.ToString(2));