httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <>
Subject Re: [users@httpd] Uncompressing incoming requests
Date Thu, 07 Jun 2012 23:23:23 GMT
On Thu, 7 Jun 2012 08:33:11 -0700 (PDT)
Abhi Auradkar <> wrote:

> Hi Nick, 
> To test it futher I gzipped a local file and posted it apache using 'ab' (I had set the
content-encoding header as well')
> Even then I see the same result. It logging the same error about magic bytes not matching. 
> Any pointers to mistakes that I am making? 


There's a similar error message to yours in 2.4, but not in 2.2:

        /* We didn't get the magic bytes. */
        if (len != 10 ||
            deflate_hdr[0] != deflate_magic[0] ||
            deflate_hdr[1] != deflate_magic[1]) {
            ap_log_rerror(APLOG_MARK, APLOG_WARNING, 0, r, APLOGNO(01387) "Zlib: Invalid header");

If that check is incorrect, something needs fixing.
Bug me if I don't get round to checking it myself!

Is it possible you have some other filter that's
corrupting the byte stream ahead of mod_deflate?
Or some other encoding that's not correctly handled?

Nick Kew

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message