Rename function

pull/3084/head
Frank Riley 5 years ago
parent 6990af811a
commit 9ee10d22c8

@ -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)

@ -37,7 +37,7 @@ namespace Emby.Server.Implementations.HttpServer
/// <param name="dto">The dto.</param>
public void FilterResponse(IRequest req, HttpResponse res, object dto)
{
foreach(var (key, value) in _server.GetCorsHeaders(req))
foreach(var (key, value) in _server.GetDefaultCorsHeaders(req))
{
res.Headers.Add(key, value);
}

@ -45,6 +45,6 @@ namespace MediaBrowser.Controller.Net
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
IDictionary<string, string> GetCorsHeaders(IRequest req);
IDictionary<string, string> GetDefaultCorsHeaders(IRequest req);
}
}

Loading…
Cancel
Save