Refactored WebSocketStream.cs

This commit is contained in:
sta
2014-07-24 15:02:42 +09:00
parent f1162dd2fd
commit a0764d89ff
3 changed files with 55 additions and 69 deletions

View File

@@ -324,7 +324,7 @@ namespace WebSocketSharp.Net.WebSockets
internal void SendAuthenticationChallenge (string challenge)
{
_stream.WriteHttp (HttpResponse.CreateUnauthorizedResponse (challenge));
_stream.WriteBytes (HttpResponse.CreateUnauthorizedResponse (challenge).ToByteArray ());
_request = _stream.ReadHttpRequest (15000);
}