luci-0.11: libs/sgi-uhttpd: ensure to send proper EOF under uhttpd v1 - fixes chromium compatibility

This commit is contained in:
Jo-Philipp Wich 2014-07-04 14:40:44 +00:00
parent b703669c5f
commit 31daa1b90d

View file

@ -112,6 +112,7 @@ function handle_request(env)
elseif id == 4 then elseif id == 4 then
sendc(tostring(data1 or "")) sendc(tostring(data1 or ""))
elseif id == 5 then elseif id == 5 then
sendc("")
active = false active = false
elseif id == 6 then elseif id == 6 then
data1:copyz(nixio.stdout, data2) data1:copyz(nixio.stdout, data2)