Changeset

12832:19365e0c0ddd

Merge 0.12->trunk
author Kim Alvefur <zash@zash.se>
date Sun, 08 Jan 2023 13:39:24 +0100
parents 12830:0c3184378032 (current diff) 12831:1cdaf21584da (diff)
children 12833:8cbb109ff7ec
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/http/server.lua	Fri Jan 06 23:53:50 2023 +0100
+++ b/net/http/server.lua	Sun Jan 08 13:39:24 2023 +0100
@@ -377,12 +377,12 @@
 			-- io.write("."); io.flush();
 			response.conn:write(chunk);
 		else
+			incomplete[response.conn] = nil;
 			if chunked then
 				response.conn:write("0\r\n\r\n");
 			end
 			-- io.write("\n");
 			if f.close then f:close(); end
-			incomplete[response.conn] = nil;
 			return response:done();
 		end
 	end