Apply suggestions from code review

pull/3037/head
ConfusedPolarBear 5 years ago
parent 85f04af04c
commit 949e4d3e64

@ -498,9 +498,12 @@ namespace Emby.Server.Implementations.HttpServer
var statusCode = GetStatusCode(requestInnerEx);
foreach (var (key, value) in GetDefaultCorsHeaders(httpReq))
{
if (!httpRes.Headers.ContainsKey(key))
{
httpRes.Headers.Add(key, value);
}
}
bool ignoreStackTrace =
requestInnerEx is SocketException

Loading…
Cancel
Save