aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs
diff options
context:
space:
mode:
authorFrank Riley <fhriley@gmail.com>2020-05-14 16:03:45 -0700
committerFrank Riley <fhriley@gmail.com>2020-05-14 16:15:09 -0700
commit9ee10d22c8ccbeb9eb4112b1a9f520d5ed998013 (patch)
tree00e2a5b825988cb772790c0df28c43903c605005 /Emby.Server.Implementations/HttpServer/HttpListenerHost.cs
parent6990af811ad65816a0534f75e889dc9c22632876 (diff)
Rename function
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/HttpListenerHost.cs')
-rw-r--r--Emby.Server.Implementations/HttpServer/HttpListenerHost.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs b/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs
index 958bb1e1d..794d55c04 100644
--- a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs
+++ b/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs
@@ -455,7 +455,7 @@ namespace Emby.Server.Implementations.HttpServer
if (string.Equals(httpReq.Verb, "OPTIONS", StringComparison.OrdinalIgnoreCase))
{
httpRes.StatusCode = 200;
- foreach(var (key, value) in GetCorsHeaders(httpReq))
+ foreach(var (key, value) in GetDefaultCorsHeaders(httpReq))
{
httpRes.Headers.Add(key, value);
}
@@ -583,7 +583,7 @@ namespace Emby.Server.Implementations.HttpServer
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
- public IDictionary<string, string> GetCorsHeaders(IRequest req)
+ public IDictionary<string, string> GetDefaultCorsHeaders(IRequest req)
{
var origin = req.Headers["Origin"];
if (origin == StringValues.Empty)