The Free Software Media System - Server Backend & API
reverting http result factory change
Luke Pulverenti60508e1dd8a2
diff --git a/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs b/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.csindex 2419320a54..9359261c56 100644--- a/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs+++ b/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs@@ -360,19 +360,11 @@ namespace MediaBrowser.Server.Implementations.HttpServervar compress = ShouldCompressResponse(requestContext, contentType);- var hasOptions = GetStaticResult(requestContext, responseHeaders, contentType, factoryFn, compress, isHeadRequest);+ var hasOptions = GetStaticResult(requestContext, responseHeaders, contentType, factoryFn, compress, isHeadRequest).Result;- return GetStaticResultTask(hasOptions, responseHeaders);- }-- private async Task<object> GetStaticResultTask(Task<IHasOptions> optionsTask,- IEnumerable<KeyValuePair<string, string>> responseHeaders)- {- var options = await optionsTask.ConfigureAwait(false);-- AddResponseHeaders(options, responseHeaders);+ AddResponseHeaders(hasOptions, responseHeaders);- return options;+ return hasOptions;}/// <summary>@@ -670,4 +662,4 @@ namespace MediaBrowser.Server.Implementations.HttpServerthrow error;}}-}+}\ No newline at end of file