Apply suggestions from code review

This commit is contained in:
ConfusedPolarBear 2020-05-18 16:54:36 -05:00
parent 85f04af04c
commit 949e4d3e64

View File

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