remove extension method
This commit is contained in:
parent
7db8257945
commit
65cb19a726
|
@ -168,12 +168,6 @@ namespace SocketHttpListener
|
||||||
: null;
|
: 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)
|
internal static Stream Compress(this Stream stream, CompressionMethod method)
|
||||||
{
|
{
|
||||||
return method == CompressionMethod.Deflate
|
return method == CompressionMethod.Deflate
|
||||||
|
|
|
@ -322,7 +322,8 @@ namespace SocketHttpListener.Net.WebSockets
|
||||||
|
|
||||||
internal void Close(HttpStatusCode code)
|
internal void Close(HttpStatusCode code)
|
||||||
{
|
{
|
||||||
_context.Response.Close(code);
|
_context.Response.StatusCode = (int)code;
|
||||||
|
_context.Response.OutputStream.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
Loading…
Reference in New Issue
Block a user