[OpenWrt-Devel] [PATCH 2/2] uhttpd: add support for gzipped content encoding

2015-10-01 Thread Andrej Krpic
this patch implements gzip content encoding. It is used when "gzip" string is present in a Accept-Encoding header of a request and the decision to use chunked encoding in a response was already made. Adds zlib dependency. Signed-off-by: Andrej Krpic --- CMakeLists.txt | 7 +++

[OpenWrt-Devel] [PATCH 1/2] uhttpd: use separate ustream for chunked transfer encoding

2015-10-01 Thread Andrej Krpic
Hi, this patch simplifies chunk printing when chunked transfer encoding is used in a response... And it comes handy when gzip content encoding will be used. Signed-off-by: Andrej Krpic --- client.c | 17 + file.c | 6 -- uhttpd.h | 1 + utils.c | 31

[OpenWrt-Devel] [PATCH 1/1] uhttpd: fix wrong header file inclusion for PRI* constant definitions

2015-09-23 Thread Andrej Krpic
Signed-off-by: Andrej Krpic --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file.c b/file.c index 6072825..9a2880f 100644 --- a/file.c +++ b/file.c @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include -- 2.4.6

[OpenWrt-Devel] [PATCH] uhttpd: Fix possible memory leaks when generating directory listing

2014-12-22 Thread Andrej Krpic
scandir() call requires free() of each returned dirent structure and parent list. Code constructing HTML response of directory listing is missing a call to free in some cases. Signed-off-by: Andrej Krpic --- file.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a