remove extension method
This commit is contained in:
parent
7db8257945
commit
65cb19a726
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user