Project

General

Profile

Serving static XML files...mime type wrong.

Added by Russ Freeman about 11 years ago

I must be doing something wrong because when serving static files the mime type is set to "application/octet-stream".

Other than patching MimeTypes.C is there a better, zero-code, solution to sending the correct mime type for XML files?


Replies (3)

RE: Serving static XML files...mime type wrong. - Added by Koen Deforche about 11 years ago

Hey Russ,

Regretfully, no. There's a feature request in the bug tracker to rectify this situation which seems trivial but we never gave it priority.

The only ugly work around I can think of: serve them as a (static) resource.

Regards,

koen

RE: Serving static XML files...mime type wrong. - Added by Russ Freeman about 11 years ago

Maybe this will help :-)

---- mimetypes.original Wed Feb 27 15:32:49 2013

  • MimeTypes.C Wed Feb 27 15:33:08 2013
    @@ --40,6 +40,7 @@
    { "mv4", "video/mp4" },
    { "mp3", "audio/mp3" },
    { "webm", "video/webm" },
  • { "xml", "application/xml" },
    { 0, 0 } // Marks end of list.
    };
    (1-3/3)