From d09d285009790591e04a797da6a26d96f46a54b5 Mon Sep 17 00:00:00 2001 From: Jonathan Massot Date: Thu, 18 Jul 2024 15:46:55 +0800 Subject: [PATCH] error content length fix --- http_server/http_server.tbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http_server/http_server.tbs b/http_server/http_server.tbs index 40ef90f..c245973 100644 --- a/http_server/http_server.tbs +++ b/http_server/http_server.tbs @@ -231,7 +231,7 @@ sub http_server_send_response(index as byte) end if sock.num=http_servers(index).socket - if http_servers(index).file_pos0 then + if http_servers(index).file_pos<=http_servers(index).file_size AND http_servers(index).file_size>0 then romfile.open(http_servers(index).request_file_name) romfile.pointer32=http_servers(index).file_pos dim data as string=romfile.getdata(255)