The Free Software Media System - Server Backend & API
Update Emby.Server.Implementations/HttpServer/HttpListenerHost.cs from review
Frank Rileyc70c58923667
diff --git a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs b/Emby.Server.Implementations/HttpServer/HttpListenerHost.csindex 48cec87412..958bb1e1d4 100644--- a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs+++ b/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs@@ -455,9 +455,9 @@ namespace Emby.Server.Implementations.HttpServerif (string.Equals(httpReq.Verb, "OPTIONS", StringComparison.OrdinalIgnoreCase)){httpRes.StatusCode = 200;- foreach(KeyValuePair<string, string> header in GetCorsHeaders(httpReq))+ foreach(var (key, value) in GetCorsHeaders(httpReq)){- httpRes.Headers.Add(header.Key, header.Value);+ httpRes.Headers.Add(key, value);}httpRes.ContentType = "text/plain";await httpRes.WriteAsync(string.Empty, cancellationToken).ConfigureAwait(false);