From 8b32e3292a8ce0e0b59cfd807e4c922375cb0ed0 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 24 Mar 2013 22:41:27 -0400 Subject: fixed dashboard caching option --- .../HttpServer/StreamWriter.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'MediaBrowser.Server.Implementations/HttpServer/StreamWriter.cs') diff --git a/MediaBrowser.Server.Implementations/HttpServer/StreamWriter.cs b/MediaBrowser.Server.Implementations/HttpServer/StreamWriter.cs index da84a51cd..46d38ad14 100644 --- a/MediaBrowser.Server.Implementations/HttpServer/StreamWriter.cs +++ b/MediaBrowser.Server.Implementations/HttpServer/StreamWriter.cs @@ -19,7 +19,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer /// Gets or sets the source stream. /// /// The source stream. - public Stream SourceStream { get; set; } + private Stream SourceStream { get; set; } /// /// The _options @@ -53,6 +53,17 @@ namespace MediaBrowser.Server.Implementations.HttpServer Options["Content-Type"] = contentType; } + /// + /// Initializes a new instance of the class. + /// + /// The source. + /// Type of the content. + /// The logger. + public StreamWriter(byte[] source, string contentType, ILogger logger) + : this(new MemoryStream(source), contentType, logger) + { + } + /// /// Writes to. /// -- cgit v1.2.3