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

@ -499,7 +499,10 @@ namespace Emby.Server.Implementations.HttpServer
foreach (var (key, value) in GetDefaultCorsHeaders(httpReq))
{
httpRes.Headers.Add(key, value);
if (!httpRes.Headers.ContainsKey(key))
{
httpRes.Headers.Add(key, value);
}
}
bool ignoreStackTrace =