From 06118307dd95b0834d67f3ae0604e3ffaf04af2a Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 17 Jul 2014 18:21:35 -0400 Subject: disable chunked encoding for images --- MediaBrowser.Controller/Net/IHttpResultFactory.cs | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'MediaBrowser.Controller/Net') diff --git a/MediaBrowser.Controller/Net/IHttpResultFactory.cs b/MediaBrowser.Controller/Net/IHttpResultFactory.cs index f7984c32cc..665c1f8d97 100644 --- a/MediaBrowser.Controller/Net/IHttpResultFactory.cs +++ b/MediaBrowser.Controller/Net/IHttpResultFactory.cs @@ -80,9 +80,13 @@ namespace MediaBrowser.Controller.Net /// The response headers. /// if set to true [is head request]. /// System.Object. - object GetStaticResult(IRequest requestContext, Guid cacheKey, DateTime? lastDateModified, - TimeSpan? cacheDuration, string contentType, Func> factoryFn, - IDictionary responseHeaders = null, bool isHeadRequest = false); + object GetStaticResult(IRequest requestContext, + Guid cacheKey, + DateTime? lastDateModified, + TimeSpan? cacheDuration, + string contentType, Func> factoryFn, + IDictionary responseHeaders = null, + bool isHeadRequest = false); /// /// Gets the static file result. @@ -101,11 +105,18 @@ namespace MediaBrowser.Controller.Net /// The request context. /// The path. /// Type of the content. + /// The cache curation. /// The file share. /// The response headers. /// if set to true [is head request]. /// System.Object. - object GetStaticFileResult(IRequest requestContext, string path, string contentType, FileShare fileShare = FileShare.Read, IDictionary responseHeaders = null, bool isHeadRequest = false); + object GetStaticFileResult(IRequest requestContext, + string path, + string contentType, + TimeSpan? cacheCuration = null, + FileShare fileShare = FileShare.Read, + IDictionary responseHeaders = null, + bool isHeadRequest = false); /// /// Gets the optimized serialized result using cache. -- cgit v1.2.3