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 +++
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
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
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