allow request handlers to disable chunked reponses
[project/uhttpd.git] / uhttpd.h
index 9bf8cbb63250d759d024f4a641b3cbfb7caced67..42385a6557af4f9a3fcf08ff03d29a99e188be32 100644 (file)
--- a/uhttpd.h
+++ b/uhttpd.h
@@ -31,7 +31,7 @@
 #include <libubox/utils.h>
 #ifdef HAVE_UBUS
 #include <libubus.h>
-#include <json/json.h>
+#include <json-c/json.h>
 #endif
 #ifdef HAVE_TLS
 #include <libubox/ustream-ssl.h>
@@ -111,6 +111,7 @@ struct http_request {
        int content_length;
        bool expect_cont;
        bool connection_close;
+       bool respond_chunked;
        uint8_t transfer_chunked;
        const struct auth_realm *realm;
 };