[OpenWrt-Devel] uhttpd: chunked output from cgi script

Jo-Philipp Wich jow at openwrt.org
Thu Oct 8 09:19:23 EDT 2015


Hi Luigi,

> I tested another patch of mine (really noobish i know :) )
> still against commit: 993cace15114a0f06f720f34a4748ab54b695f0d
> [...]
> and it seems to works for the reasons  I tried to explain in my previous
> mail.

Right, it will work but emit invalid HTTP responses if a CGI handler
decides to respond with an 204 or 304 status, because such responses
must not contain any body, not even an empty EOF chunk.

> I tested your commit too and it works fine. Much more complete than mine :)
> I just ask for a detail because I'm not sure if I understand it correctly:
> between 2 request how do you reset cl->request.disable_chunked?
> is it done in uh_request_done() with the memset() ???

Correct, it happens implicitely through the memset().

~ Jow
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list