aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Server.Implementations')
-rw-r--r--MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs14
-rw-r--r--MediaBrowser.Server.Implementations/MediaBrowser.Server.Implementations.csproj1
2 files changed, 15 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs b/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs
new file mode 100644
index 000000000..2dd968988
--- /dev/null
+++ b/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs
@@ -0,0 +1,14 @@
+using MediaBrowser.Common.Net;
+using ServiceStack.Common.Web;
+using System.IO;
+
+namespace MediaBrowser.Server.Implementations.HttpServer
+{
+ public class HttpResultFactory : IHttpResultFactory
+ {
+ public object GetResult(Stream stream, string contentType)
+ {
+ return new HttpResult(stream, contentType);
+ }
+ }
+}
diff --git a/MediaBrowser.Server.Implementations/MediaBrowser.Server.Implementations.csproj b/MediaBrowser.Server.Implementations/MediaBrowser.Server.Implementations.csproj
index 781088672..0b9f7c7e1 100644
--- a/MediaBrowser.Server.Implementations/MediaBrowser.Server.Implementations.csproj
+++ b/MediaBrowser.Server.Implementations/MediaBrowser.Server.Implementations.csproj
@@ -106,6 +106,7 @@
<Compile Include="BdInfo\BdInfoExaminer.cs" />
<Compile Include="Configuration\ServerConfigurationManager.cs" />
<Compile Include="HttpServer\BaseRestService.cs" />
+ <Compile Include="HttpServer\HttpResultFactory.cs" />
<Compile Include="HttpServer\HttpServer.cs" />
<Compile Include="HttpServer\NativeWebSocket.cs" />
<Compile Include="HttpServer\ServerFactory.cs" />