From ee1d4befb3cef6efd184ba116c4fa7fefe0dae1a Mon Sep 17 00:00:00 2001 From: Tobias Pankrath Date: Sat, 25 Sep 2021 12:33:51 +0200 Subject: [PATCH] fix: websocket's 64bit length calculation --- http2.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http2.d b/http2.d index 7817cd5..ffe0960 100644 --- a/http2.d +++ b/http2.d @@ -4188,7 +4188,7 @@ public { if(d.length < 8) return needsMoreData(); foreach(i; 0 .. 8) { - msg.realLength |= d[0] << ((7-i) * 8); + msg.realLength |= ulong(d[0]) << ((7-i) * 8); d = d[1 .. $]; } } else {