The Free Software Media System - Server Backend & API
Apply suggestions from code review
ConfusedPolarBear949e4d3e64a7
diff --git a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs b/Emby.Server.Implementations/HttpServer/HttpListenerHost.csindex 9a4e858a51..7de4f168c1 100644--- a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs+++ b/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs@@ -499,7 +499,10 @@ namespace Emby.Server.Implementations.HttpServerforeach (var (key, value) in GetDefaultCorsHeaders(httpReq)){- httpRes.Headers.Add(key, value);+ if (!httpRes.Headers.ContainsKey(key))+ {+ httpRes.Headers.Add(key, value);+ }}bool ignoreStackTrace =