mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07:00
broke up EnvironmentProvider into different services
This commit is contained in:
parent
4d874829e8
commit
6b0a24e28e
54 changed files with 549 additions and 560 deletions
|
@ -5,6 +5,7 @@ using System.IO;
|
|||
using System.Net;
|
||||
using System.Text;
|
||||
using NLog;
|
||||
using NzbDrone.Common.EnvironmentInfo;
|
||||
|
||||
namespace NzbDrone.Common
|
||||
{
|
||||
|
@ -25,14 +26,12 @@ namespace NzbDrone.Common
|
|||
|
||||
public const string ContentLenghtHeader = "Content-Length";
|
||||
|
||||
private readonly IEnvironmentProvider _environmentProvider;
|
||||
private static readonly Logger logger = LogManager.GetCurrentClassLogger();
|
||||
private readonly string _userAgent;
|
||||
|
||||
public HttpProvider(IEnvironmentProvider environmentProvider)
|
||||
public HttpProvider()
|
||||
{
|
||||
_environmentProvider = environmentProvider;
|
||||
_userAgent = String.Format("NzbDrone {0}", _environmentProvider.Version);
|
||||
_userAgent = String.Format("NzbDrone {0}", BuildInfo.Version);
|
||||
}
|
||||
|
||||
public string DownloadString(string address)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue