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

@@ -389,8 +389,10 @@ feature -- Body
message_writable: message_writable
not_too_big: a_offset + a_count <= f.count
do
wgi_response.put_file_content (f, a_offset, a_count)
increment_transfered_content_length (a_count)
if a_count > 0 then
wgi_response.put_file_content (f, a_offset, a_count)
increment_transfered_content_length (a_count)
end
end
feature -- Chunk body