$Log$
+Revision 611.5 2005/06/07 04:31:00 ajc
+* Don't compress when HTTP tracing/logging is enabled
+
Revision 611.4 2005/06/06 23:50:17 ajc
* Made some changes to the calendar/uuid logic to fix a bug that caused
duplicate entries for an event to appear in some situations
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
-
/*
* 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
/* $Id$ */
+/*
+ * Uncomment to dump an HTTP trace to stderr
+#define HTTP_TRACING 1
+ */
+
+#ifdef HTTP_TRACING
+#undef HAVE_ZLIB_H
+#undef HAVE_ZLIB
+#endif
+
#ifdef HAVE_ZLIB_H
#include <zlib.h>
#endif
*
*/
-/*
- * Uncomment to dump an HTTP trace to stderr
- */
-#define HTTP_TRACING 1
#include <ctype.h>
#include <stdlib.h>
WC->burst_len = 0;
WC->burst = NULL;
-#ifndef HTTP_TRACING
#ifdef HAVE_ZLIB
/* Handle gzip compression */
if (WC->gzip_ok) {
}
}
#endif /* HAVE_ZLIB */
-#endif /* HTTP_TRACING */
wprintf("Content-length: %d\r\n\r\n", the_len);
client_write(the_data, the_len);