diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-01-12 22:46:44 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-01-12 22:46:44 -0500 |
| commit | d8d5dd487326dd3fccf4e9f30cd8f7e3783fcfda (patch) | |
| tree | cf9950d32ee194d72a367c836a70dfb8f4e61401 /MediaBrowser.Server.Implementations/HttpServer/SocketSharp/RequestMono.cs | |
| parent | f55217406985ad21da44aa523353f33e3f720ccd (diff) | |
make channel access opt-in rather than opt out
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer/SocketSharp/RequestMono.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/HttpServer/SocketSharp/RequestMono.cs | 25 |
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 |
