@ -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
@ -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