Passwords inputs are now the correct type. Fix configure_indexer not returning errors. Fix build warning. Change AB, HDT, MTTV, PHD, ST to use generic web client.

This commit is contained in:
Kayomani
2015-07-23 21:36:23 +01:00
parent 8a7ab0c5f1
commit f8eb72414d
23 changed files with 262 additions and 203 deletions

View File

@@ -22,6 +22,24 @@ namespace Jackett
{
public class Startup
{
public static bool TracingEnabled
{
get;
set;
}
public static bool LogRequests
{
get;
set;
}
public static bool CurlSafe
{
get;
set;
}
public void Configuration(IAppBuilder appBuilder)
{
// Configure Web API for self-host.
@@ -30,13 +48,13 @@ namespace Jackett
appBuilder.Use<WebApiRootRedirectMiddleware>();
// Setup tracing if enabled
if (Engine.TracingEnabled)
if (TracingEnabled)
{
config.EnableSystemDiagnosticsTracing();
config.Services.Replace(typeof(ITraceWriter), new WebAPIToNLogTracer());
}
// Add request logging if enabled
if (Engine.LogRequests)
if (LogRequests)
{
config.MessageHandlers.Add(new WebAPIRequestLogger());
}