diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-11 22:29:47 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-11 22:29:47 -0500 |
| commit | 60508e1dd8a25be58dea308e5f48ff0c596f97c8 (patch) | |
| tree | fa1af13da2aec99eed8162c1270c465a3a68bd89 /MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs | |
| parent | 2a444a70e55c326d43476a62b6b6ab4950a28603 (diff) | |
reverting http result factory change
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs b/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs index 2419320a5..9359261c5 100644 --- a/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs +++ b/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs @@ -360,19 +360,11 @@ namespace MediaBrowser.Server.Implementations.HttpServer var 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.HttpServer throw error; } } -} +}
\ No newline at end of file |
