Question
A user has attached XML files to a topic. He can not access these XML files correctly as XML files.
Unlike PDF and other attachments XML ones are returned as "Type: text/plain" on GET request to an HTTP client.
Why is this?
I see in bin/configure the lines
# XML confuses IE, so strip it out. This is fixed in CGI.pm 3.06.
$hdr =~ s/^<\?xml.*?>//s;
print CGI::header('text/html'), $hdr;
Is there a known issue and can I do anything about it?
Environment
--
PeterJones - 15 Jan 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
I am not sure what the referenced code does. What you are probably missing is the proper MIME mapping. Check the MIME settings in the file
{MimeTypesFileName} in configure points to.
--
PeterThoeny - 16 Jan 2007
I changed the config to use the apache server's mime.types and we now get good results. Thanks
--
PeterJones - 16 Jan 2007