Index: sdk/lib/io/websocket_impl.dart |
diff --git a/sdk/lib/io/websocket_impl.dart b/sdk/lib/io/websocket_impl.dart |
index bd21220f69830e9179419dd6ce6a5421bf7d9652..356ca4a39b82aad10d10025806afaffb317cb827 100644 |
--- a/sdk/lib/io/websocket_impl.dart |
+++ b/sdk/lib/io/websocket_impl.dart |
@@ -671,7 +671,7 @@ class _WebSocketImpl extends Stream implements WebSocket { |
if (mask) { |
header[1] |= 1 << 7; |
var maskBytes = _IOCrypto.getRandomBytes(4); |
- header.setRange(index, 4, maskBytes); |
+ header.setRange(index, index + 4, maskBytes); |
index += 4; |
if (data != null) { |
var list = new Uint8List(data.length); |