|
|
|
@ -185,14 +185,6 @@ namespace WebSocketSharp
|
|
|
|
response.OutputStream.Close ();
|
|
|
|
response.OutputStream.Close ();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
internal static void CloseWithAuthChallenge (
|
|
|
|
|
|
|
|
this HttpListenerResponse response, string challenge
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
response.Headers.InternalSet ("WWW-Authenticate", challenge, true);
|
|
|
|
|
|
|
|
response.Close (HttpStatusCode.Unauthorized);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
internal static byte[] Compress (this byte[] data, CompressionMethod method)
|
|
|
|
internal static byte[] Compress (this byte[] data, CompressionMethod method)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return method == CompressionMethod.Deflate
|
|
|
|
return method == CompressionMethod.Deflate
|
|
|
|
|