Fix a few
This commit is contained in:
parent
75dab14cf5
commit
99cf6b1b79
@ -103,7 +103,9 @@ namespace WebSocketSharp
|
|||||||
private byte [] readHandshakeEntityBody (string length)
|
private byte [] readHandshakeEntityBody (string length)
|
||||||
{
|
{
|
||||||
var len = Int64.Parse (length);
|
var len = Int64.Parse (length);
|
||||||
return _innerStream.ReadBytes (len, 1024);
|
return len > 1024
|
||||||
|
? _innerStream.ReadBytes (len, 1024)
|
||||||
|
: _innerStream.ReadBytes ((int) len);
|
||||||
}
|
}
|
||||||
|
|
||||||
private string [] readHandshakeHeaders ()
|
private string [] readHandshakeHeaders ()
|
||||||
|
Loading…
Reference in New Issue
Block a user