remove extension method

This commit is contained in:
Luke Pulverenti 2016-11-12 01:40:57 -05:00
parent 7db8257945
commit 65cb19a726
2 changed files with 2 additions and 7 deletions

View File

@ -168,12 +168,6 @@ namespace SocketHttpListener
: null;
}
internal static void Close(this HttpListenerResponse response, HttpStatusCode code)
{
response.StatusCode = (int)code;
response.OutputStream.Dispose();
}
internal static Stream Compress(this Stream stream, CompressionMethod method)
{
return method == CompressionMethod.Deflate

View File

@ -322,7 +322,8 @@ namespace SocketHttpListener.Net.WebSockets
internal void Close(HttpStatusCode code)
{
_context.Response.Close(code);
_context.Response.StatusCode = (int)code;
_context.Response.OutputStream.Dispose();
}
#endregion