From 7cba1b21ad0f6c077bf3c8d2ae169da0cc973e0b Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 1 Jan 2023 18:12:42 +0000 Subject: [PATCH] Fix HTTP request breakage. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4097 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- core/httpd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/httpd.js b/core/httpd.js index 2b9f35ef..6b3644d4 100644 --- a/core/httpd.js +++ b/core/httpd.js @@ -447,7 +447,6 @@ function handleConnection(client) { resetTimeout(++requestCount); function reset() { - inputBuffer = new Uint8Array(0); request = undefined; headers = {}; parsing_header = true; @@ -546,6 +545,7 @@ function handleConnection(client) { inputBuffer = inputBuffer.slice(length); } else { body.set(inputBuffer, offset); + inputBuffer = inputBuffer.slice(inputBuffer.length); } bodyToRead -= length; if (bodyToRead <= 0) {