[Modify] Polish it

This commit is contained in:
sta 2018-04-22 19:39:26 +09:00
parent e5accd3e69
commit e9a87d2f3f

View File

@ -491,8 +491,10 @@ namespace WebSocketSharp.Net.WebSockets
internal void SendAuthenticationChallenge (string challenge)
{
var buff = HttpResponse.CreateUnauthorizedResponse (challenge).ToByteArray ();
_stream.Write (buff, 0, buff.Length);
var res = HttpResponse.CreateUnauthorizedResponse (challenge);
var bytes = res.ToByteArray ();
_stream.Write (bytes, 0, bytes.Length);
_request = HttpRequest.Read (_stream, 15000);
}