* Finished gzip compression of dynamic pages (when browser supports it)
[citadel.git] / webcit / context_loop.c
index 9b744f13f12708675abade12df20fa94ff8f489d..3a9a29178d9dc1fdc604139a72d738c889fdeb5e 100644 (file)
 #include <stdarg.h>
 #include <pthread.h>
 #include <signal.h>
-
-#ifdef WITH_ZLIB
-#include <zlib.h>
-#endif
-
 #include "webcit.h"
 #include "webserver.h"
 
@@ -255,6 +250,7 @@ void context_loop(int sock)
                        got_cookie = 1;
                }
 
+#ifdef WITH_ZLIB
                if (!strncasecmp(buf, "Accept-encoding: ", 17)) {
                        extract_token(encodings, &buf[17], 0, ';');
                        for (i=0; i<num_tokens(encodings, ','); ++i) {
@@ -264,6 +260,7 @@ void context_loop(int sock)
                                }
                        }
                }
+#endif
 
                hptr = (struct httprequest *)
                        malloc(sizeof(struct httprequest));