www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Maegulies <ben...@basistech.com>
Subject general/5677: Content_type and content_encoding are lumped together
Date Mon, 31 Jan 2000 20:04:34 GMT

>Number:         5677
>Category:       general
>Synopsis:       Content_type and content_encoding are lumped together
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon Jan 31 12:10:00 PST 2000
>Originator:     benson@basistech.com
>Release:        1.3.11
Linux, but the env isn't relevant
mod_mime returned sucess for type_checker, even when it has not established a character set.
This stops the chain of calls to type_checker, of course.

For text/ types, it is very possible that another module (like mod_mime_magic) may know the
content encoding (by examining the contents) when mod_mime has no idea based on filename.
It seems that there should be some way to allow different modules to contribute content_type
and content_encoding. Otherwise, the only solution here would be to modify mod_mime to duplicate
mod_mime_magic in opening the file and looking for Unicode BOM's.

treat type_checker as a run_all, or special case it to only stop when both fields are established,
or make a new slot (yuck) for a separate method to do the encoding part.
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]

View raw message