fix not being in the wrong place

This commit is contained in:
William Bell committed 2023-06-29 23:46:08 +01:00
1 parent 38de8ed844
commit 24e10027a3
1 file changed
+1 -1
+1 -1
View File
@@ -25,7 +25,7 @@ let parse(conn) = do
let contentLength = 0
if ("Content-Length" in headers) do
contentLength = number(headers["Content-Length"])
while (not conn.isClosed() && (body.length < contentLength || contentLength == 0)) do
while ((not conn.isClosed()) && (body.length < contentLength || contentLength == 0)) do
try do
let chunk = conn.read(readChunkSize)
if (chunk.length == 0) break