Skip to content

Commit

Permalink
error content length fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanMassot committed Jul 18, 2024
1 parent ddfb7a9 commit d09d285
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http_server/http_server.tbs
Original file line number Diff line number Diff line change
Expand Up @@ -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_pos<http_servers(index).file_size AND http_servers(index).file_size>0 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)
Expand Down

0 comments on commit d09d285

Please sign in to comment.