Hi!

I tried to use LWP::MediaTypes for determing the mime-type of various 
files I offer as downloads and which are sent through a cgi script.

My problem is: The function guess_media_type() within list context 
returns Content-Type "text/plain" and Content-Encoding "x-hqx" for files 
with suffix 'hqx' (with I found is directly implemented in 
MediaTypes.pm). Instead I would prefer the function to return 
Content-Type "application/mac-binhex40" for files with that suffix so 
that Netscape browsers running on windows do not show the files as text 
but offer you to save them to disk.

Is there any reason, why the Content-Encoding ist prefered to the 
Content-Type in function guess_media_type()? My solution now is to 
comment out the line with the Content-Encoding "x-hqx" in MediaTypes.pm 
to make it return the correct Content-Type. Is there a better way?

Norbert
-- 
epublica
Internet-Technologie://Konzeption/Produktion/Wartung

Haus der Multimedia-Produzenten
Behringstra�e 28a / Haus 2
22765 Hamburg

[EMAIL PROTECTED]
http://www.epublica.de
Tel.: 040/4109879-2
Fax : 040/4109879-9
Mob.: 0174/9609761

Reply via email to