mirror of
https://github.com/Open-Argon/http.ar.git
synced 2026-10-28 09:43:55 +00:00
fix not being in the wrong place
This commit is contained in:
1 parent
38de8ed844
commit
24e10027a3
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user