aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/BaseApiService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-02-12 20:52:24 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-02-12 20:52:24 -0500
commit9254c37d52af3d16ec9e46b3e211ecc7dc4f1617 (patch)
tree7deffac186beb7e46e1d246b435f88b3a7c0e2ca /MediaBrowser.Api/BaseApiService.cs
parent8986b30c201782faac1bd6d4a299a9af49a68be4 (diff)
added dlna headers for images
Diffstat (limited to 'MediaBrowser.Api/BaseApiService.cs')
-rw-r--r--MediaBrowser.Api/BaseApiService.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/MediaBrowser.Api/BaseApiService.cs b/MediaBrowser.Api/BaseApiService.cs
index bea1ed505..5fba539fe 100644
--- a/MediaBrowser.Api/BaseApiService.cs
+++ b/MediaBrowser.Api/BaseApiService.cs
@@ -77,7 +77,7 @@ namespace MediaBrowser.Api
{
return ToOptimizedResult(result);
}
-
+
/// <summary>
/// To the cached result.
/// </summary>
@@ -87,12 +87,13 @@ namespace MediaBrowser.Api
/// <param name="cacheDuration">Duration of the cache.</param>
/// <param name="factoryFn">The factory fn.</param>
/// <param name="contentType">Type of the content.</param>
+ /// <param name="responseHeaders">The response headers.</param>
/// <returns>System.Object.</returns>
/// <exception cref="System.ArgumentNullException">cacheKey</exception>
- protected object ToCachedResult<T>(Guid cacheKey, DateTime lastDateModified, TimeSpan? cacheDuration, Func<T> factoryFn, string contentType)
+ protected object ToCachedResult<T>(Guid cacheKey, DateTime lastDateModified, TimeSpan? cacheDuration, Func<T> factoryFn, string contentType, IDictionary<string,string> responseHeaders = null)
where T : class
{
- return ResultFactory.GetCachedResult(Request, cacheKey, lastDateModified, cacheDuration, factoryFn, contentType);
+ return ResultFactory.GetCachedResult(Request, cacheKey, lastDateModified, cacheDuration, factoryFn, contentType, responseHeaders);
}
/// <summary>