simplified the architecture

This commit is contained in:
Francesco Cozzuto
2023-01-20 23:31:57 +01:00
parent 411388755f
commit 533cf01920
52 changed files with 241 additions and 257 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ fun fromSocket(fd: int, max_head: int = 1024) {
request, error, parsed_bytes = parseHead(text);
if error != none:
return none, error, false;
# Split the received data into head and body.
head_bytes = buffer.sliceUp(head_buffer, 0, parsed_bytes);
body_bytes = buffer.sliceUp(head_buffer, parsed_bytes, count(head_buffer) - parsed_bytes);