luci-0.11: libs/sgi-uhttpd: ensure to send proper EOF under uhttpd v1 - fixes chromiu...
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 4 Jul 2014 14:40:44 +0000 (14:40 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 4 Jul 2014 14:40:44 +0000 (14:40 +0000)
libs/sgi-uhttpd/luasrc/sgi/uhttpd.lua

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