Apply suggestions from code review
This commit is contained in:
parent
85f04af04c
commit
949e4d3e64
|
@ -498,9 +498,12 @@ namespace Emby.Server.Implementations.HttpServer
|
||||||
var statusCode = GetStatusCode(requestInnerEx);
|
var statusCode = GetStatusCode(requestInnerEx);
|
||||||
|
|
||||||
foreach (var (key, value) in GetDefaultCorsHeaders(httpReq))
|
foreach (var (key, value) in GetDefaultCorsHeaders(httpReq))
|
||||||
|
{
|
||||||
|
if (!httpRes.Headers.ContainsKey(key))
|
||||||
{
|
{
|
||||||
httpRes.Headers.Add(key, value);
|
httpRes.Headers.Add(key, value);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool ignoreStackTrace =
|
bool ignoreStackTrace =
|
||||||
requestInnerEx is SocketException
|
requestInnerEx is SocketException
|
||||||
|
|
Loading…
Reference in New Issue
Block a user