diff --git a/lib/spdylay_zlib.c b/lib/spdylay_zlib.c index 1b8b1c32..4789de1f 100644 --- a/lib/spdylay_zlib.c +++ b/lib/spdylay_zlib.c @@ -26,7 +26,13 @@ #include -#define COMPRESSION_LEVEL 9 +/* By default header compression is disabled */ +#undef ENABLE_HD_COMP +#ifdef ENABLE_HD_COMP +# define COMPRESSION_LEVEL 9 +#else /* !ENABLE_HD_COMP */ +# define COMPRESSION_LEVEL 0 +#endif /* !ENABLE_HD_COMP */ #define WINDOW_BITS 11 #define MEM_LEVEL 1