www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strobe anarkhos <anark...@mac.com>
Subject mod_mime/7531: Apache lacks OSType <-> mime magic
Date Fri, 06 Apr 2001 05:42:19 GMT

>Number:         7531
>Category:       mod_mime
>Synopsis:       Apache lacks OSType <-> mime magic
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Thu Apr 05 22:50:00 PDT 2001
>Originator:     anarkhos@mac.com
>Release:        2.0.16
Darwin 1.3
Apache decides what MIME types are reported depending what filename extension the file has.
Darwin and OS X also have what is called a file 'type' which is a four character code like

No extra library need be linked to add support for an OSType -> MIME type mapping.

The relevant header is /usr/include/sys/attr.h

Support for OSTypes would help tremendously when dealing with filename extension conflicts.
For example Real Networks lays claim to .rpm as does RedHat.
This problem doesn't break anything specifically unless one tries to download .rpm files in
a non-Linux browser or similar situation. It also occurs when the file has no filename extension
which is very frequent with mac users.
I have not contributed source to Apache before, but feel free to contact me. I would be interested
in helping with this specific problem (although it may be so trivial I may end up being in
the way)

The relevant header file is /usr/include/sys/attr.h
 [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