[mapguide-internals] MIME type for MapGuide packages

Jason Birch Jason.Birch at nanaimo.ca
Sun May 10 18:48:16 EDT 2009

Here's a version with the MIME type set to application/octet-stream:


This works for me, but the MSDN reference on the MIME sniffing "feature" seems to indicate that it may be safer to use an unambiguous content type (like the vnd... version I was talking about):



----- Original Message -----
Sent: Sun May 10 13:20:52 2009
Subject: Re: [mapguide-internals] MIME type for MapGuide packages

That won't work.
IE uses "MIME sniffing" meaning that it reads the first few bytes of the
file, and sees that it is
a zip file, and then disregards all other indicators, like mime headers,
filename etc.

It even has a special security bug due to this (also explains how it works):

Instead, I propose that the MapGuide server looks for both .mpg and .zip
files in the packages folder.

Regards, Kenneth Skovhede, GEOGRAF A/S

More information about the mapguide-internals mailing list