aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/HttpServer/SocketSharp/RequestMono.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2015-02-09 16:58:30 -0500
committerLuke <luke.pulverenti@gmail.com>2015-02-09 16:58:30 -0500
commit4cc3b2f0ccd7c092a4acf72db4903415e175037a (patch)
treef9f90f8665b726253b8b357674f2f141aa43abc9 /MediaBrowser.Server.Implementations/HttpServer/SocketSharp/RequestMono.cs
parente7037a9b80843c127712f11430239f8fa3cb4aed (diff)
parent3d7089a7dbabb652730c892206ca050f52f832b1 (diff)
Merge pull request #1005 from MediaBrowser/dev
3.0.5518.0
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer/SocketSharp/RequestMono.cs')
-rw-r--r--MediaBrowser.Server.Implementations/HttpServer/SocketSharp/RequestMono.cs25
1 files changed, 0 insertions, 25 deletions
diff --git a/MediaBrowser.Server.Implementations/HttpServer/SocketSharp/RequestMono.cs b/MediaBrowser.Server.Implementations/HttpServer/SocketSharp/RequestMono.cs
index 226d97b3c..2c8413f5e 100644
--- a/MediaBrowser.Server.Implementations/HttpServer/SocketSharp/RequestMono.cs
+++ b/MediaBrowser.Server.Implementations/HttpServer/SocketSharp/RequestMono.cs
@@ -556,31 +556,6 @@ namespace MediaBrowser.Server.Implementations.HttpServer.SocketSharp
return (stream);
}
}
-
- public void SaveAs(string filename)
- {
- byte[] buffer = new byte[16 * 1024];
- long old_post = stream.Position;
-
- try
- {
- File.Delete(filename);
- using (FileStream fs = File.Create(filename))
- {
- stream.Position = 0;
- int n;
-
- while ((n = stream.Read(buffer, 0, 16 * 1024)) != 0)
- {
- fs.Write(buffer, 0, n);
- }
- }
- }
- finally
- {
- stream.Position = old_post;
- }
- }
}
class Helpers