Apply suggestions from code review
This commit is contained in:
parent
85f04af04c
commit
949e4d3e64
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue
Block a user