The Free Software Media System - Server Backend & API
Addressing review feedback
Vasily61d9c9df5b4a
diff --git a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs b/Emby.Server.Implementations/HttpServer/HttpListenerHost.csindex c128621450..dd60e7a184 100644--- a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs+++ b/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs@@ -242,9 +242,7 @@ namespace Emby.Server.Implementations.HttpServerprivate async Task ErrorHandler(Exception ex, IRequest httpReq, bool logExceptionStackTrace, string urlToLog){- string urlSuffix = string.IsNullOrWhiteSpace(urlToLog)- ? string.Format(CultureInfo.InvariantCulture, "; URL being processed: {0}", urlToLog)- : "";+ string urlSuffix = string.Format(CultureInfo.InvariantCulture, "; URL being processed: {0}", urlToLog);try{ex = GetActualException(ex);@@ -460,7 +458,7 @@ namespace Emby.Server.Implementations.HttpServervar stopWatch = new Stopwatch();stopWatch.Start();var httpRes = httpReq.Response;- string urlToLog = null;+ string urlToLog = GetUrlToLog(urlString);string remoteIp = httpReq.RemoteIp;try@@ -506,8 +504,6 @@ namespace Emby.Server.Implementations.HttpServerreturn;}- urlToLog = GetUrlToLog(urlString);-if (string.Equals(localPath, _baseUrlPrefix + "/", StringComparison.OrdinalIgnoreCase)|| string.Equals(localPath, _baseUrlPrefix, StringComparison.OrdinalIgnoreCase)|| string.Equals(localPath, "/", StringComparison.OrdinalIgnoreCase)