update response headers for HEAD requests

This commit is contained in:
Luke Pulverenti
2017-09-24 16:24:12 -04:00
parent de5a8d579b
commit 768f20b1bb
3 changed files with 10 additions and 13 deletions

View File

@@ -579,7 +579,13 @@ namespace Emby.Server.Implementations.HttpServer
catch (Exception ex)
{
ErrorHandler(ex, httpReq, !string.Equals(ex.GetType().Name, "SocketException", StringComparison.OrdinalIgnoreCase));
var logException = !string.Equals(ex.GetType().Name, "SocketException", StringComparison.OrdinalIgnoreCase);
#if DEBUG
logException = true;
#endif
ErrorHandler(ex, httpReq, logException);
}
finally
{