]> code.citadel.org Git - citadel.git/blobdiff - webcit/context_loop.c
*** empty log message ***
[citadel.git] / webcit / context_loop.c
index 9fd9ba8fe4f9b003457879b5ff7bb21ef72eb33a..dc5825cb36e00790aedac7c049533e25c08e5272 100644 (file)
@@ -286,12 +286,16 @@ void context_loop(int sock)
 
                /*
                 * Can we compress?
+                * (Don't compress if HTTP_TRACING is active, because
+                * the compressed data obviously doesn't log well.)
                 */
+#ifndef HTTP_TRACING
                if (!strncasecmp(buf, "Accept-encoding:", 16)) {
                        if (strstr(&buf[16], "gzip")) {
                                gzip_ok = 1;
                        }
                }
+#endif /* HTTP_TRACING */
 
                /*
                 * Browser-based sessions use cookies for session authentication