mirror of https://github.com/adamdruppe/arsd.git
fix: websocket's 64bit length calculation
This commit is contained in:
parent
65e9f3302c
commit
ee1d4befb3
2
http2.d
2
http2.d
|
@ -4188,7 +4188,7 @@ public {
|
||||||
if(d.length < 8) return needsMoreData();
|
if(d.length < 8) return needsMoreData();
|
||||||
|
|
||||||
foreach(i; 0 .. 8) {
|
foreach(i; 0 .. 8) {
|
||||||
msg.realLength |= d[0] << ((7-i) * 8);
|
msg.realLength |= ulong(d[0]) << ((7-i) * 8);
|
||||||
d = d[1 .. $];
|
d = d[1 .. $];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue