#24 incorrect NO_CONTENT_TYPE_IN_RESPONSE_HEADER

open
nobody
None
9
2004-10-11
2004-06-07
Anonymous
No

If the response header contains "content-type" instead
of "Content-type" mod_gzip returns an incorrect
NO_CONTENT_TYPE_IN_RESPONSE_HEADER.

JDK 1.3.1_06 puts the all lower case "content-type" in
the reponse header if you use response.setContentType
("text/html"). If I change this to response.setHeader
("Content-type","text/html") or even "ConTent-typE"
gzip handles it correctly. It only fails when the response
header has a lower case "c" in "content-type".

The exact error logged is:
mod_gzip:
SEND_AS_IS:NO_CONTENT_TYPE_IN_RESPONSE_HEADER
In:0 -< Out:0 = 0 pct.

I am running Apache 1.3.31 on Win2K, mod_gzip
1.3.26.1a.

Discussion

  • Logged In: YES
    user_id=211909

    Accepted as bug.

     
    • priority: 5 --> 9