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

Luigi Tarenga luigi.tarenga at gmail.com
Thu Oct 8 09:14:15 EDT 2015


Hi again Jow,
I tested another patch of mine (really noobish i know :) )
still against commit: 993cace15114a0f06f720f34a4748ab54b695f0d

--- utils.c    2015-10-08 15:05:01.209195841 +0200
+++ utils.c    2015-10-08 15:04:27.082529799 +0200
@@ -28,10 +28,6 @@
      if (cl->request.method == UH_HTTP_MSG_HEAD || cl->request.method 
== UH_HTTP_MSG_OPTIONS)
          return false;

-    /* RFC2616 10.2.5, 10.3.5 */
-    if (cl->http_code == 204 || cl->http_code == 304)
-        return false;
-
      return true;
  }


and it seems to works for the reasons  I tried to explain in my previous 
mail.

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() ???

thank you in advance
Luigi

On 10/08/2015 12:47 PM, Luigi Tarenga wrote:
>
> I'm going to try a new simple patch and then your suggested one.
> I will update you.
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20151008/00dffe3d/attachment.htm>
-------------- next part --------------
_______________________________________________
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