If the count for put_file_content is not positive (i.e <= 0), do not send anything.

Output/log more information for request handling when standalone httpd server has verbose enabled.
This commit is contained in:
2016-12-01 21:20:14 +01:00
parent 9fd53b9b1f
commit 186e5514eb
4 changed files with 33 additions and 9 deletions

View File

@@ -106,7 +106,9 @@ feature -- Output operation
put_file_content (f: FILE; a_offset: INTEGER; a_count: INTEGER)
-- Send `a_count' bytes from the content of file `f' starting at offset `a_offset'.
do
output.put_file_content (f, a_offset, a_count)
if a_count > 0 then
output.put_file_content (f, a_offset, a_count)
end
end
flush