aboutsummaryrefslogtreecommitdiff
path: root/SocketHttpListener.Portable/Net/HttpConnection.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-11-12 01:58:50 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-11-12 01:58:50 -0500
commitc035f2baa1f3537d298a6559d15bd7ca40188e5d (patch)
treebf9a2dc96c31df3a038e83eff8690b78270d1f1f /SocketHttpListener.Portable/Net/HttpConnection.cs
parent65cb19a726a3d6fbc0f2dce6f39381672d3ea9a1 (diff)
update responses
Diffstat (limited to 'SocketHttpListener.Portable/Net/HttpConnection.cs')
-rw-r--r--SocketHttpListener.Portable/Net/HttpConnection.cs10
1 files changed, 2 insertions, 8 deletions
diff --git a/SocketHttpListener.Portable/Net/HttpConnection.cs b/SocketHttpListener.Portable/Net/HttpConnection.cs
index d31da4132..db34c4218 100644
--- a/SocketHttpListener.Portable/Net/HttpConnection.cs
+++ b/SocketHttpListener.Portable/Net/HttpConnection.cs
@@ -1,7 +1,6 @@
using System;
using System.IO;
using System.Text;
-using System.Threading;
using System.Threading.Tasks;
using MediaBrowser.Model.Cryptography;
using MediaBrowser.Model.IO;
@@ -210,12 +209,7 @@ namespace SocketHttpListener.Net
// TODO: can we get this stream before reading the input?
if (o_stream == null)
{
- HttpListener listener = context.Listener;
-
- if (listener == null)
- return new ResponseStream(stream, context.Response, true, _memoryStreamFactory, _textEncoding);
-
- o_stream = new ResponseStream(stream, context.Response, listener.IgnoreWriteExceptions, _memoryStreamFactory, _textEncoding);
+ o_stream = new ResponseStream(stream, context.Response, _memoryStreamFactory, _textEncoding);
}
return o_stream;
}
@@ -257,7 +251,7 @@ namespace SocketHttpListener.Net
Close(true);
return;
}
- HttpListener listener = context.Listener;
+ HttpListener listener = epl.Listener;
if (last_listener != listener)
{
RemoveConnection();