Skip to content

Commit

Permalink
corrected whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
einaros committed Oct 25, 2011
1 parent 6ca42fd commit 89a5134
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/hybi-common.js
Expand Up @@ -55,16 +55,16 @@ mask = function(buf, maskString) {
getHybiLengthAsHexString = function(len, masked) {
if (len < 126) {
var buf = new Buffer(1);
buf[0] = (masked ? 0x80 : 0) | len;
buf[0] = (masked ? 0x80 : 0) | len;
}
else if (len < 65536) {
var buf = new Buffer(3);
buf[0] = (masked ? 0x80 : 0) | 126;
buf[0] = (masked ? 0x80 : 0) | 126;
getBufferFromHexString(pack(4, len)).copy(buf, 1);
}
else {
var buf = new Buffer(9);
buf[0] = (masked ? 0x80 : 0) | 127;
buf[0] = (masked ? 0x80 : 0) | 127;
getBufferFromHexString(pack(16, len)).copy(buf, 1);
}
return getHexStringFromBuffer(buf);
Expand Down

0 comments on commit 89a5134

Please sign in to comment.