#36883: Wrong MIME type for dmg files -----------------------------+--------------------- Reporter: monkam-l@… | Owner: admin@… Type: defect | Status: new Priority: Normal | Milestone: Component: server/hosting | Version: Resolution: | Keywords: Port: | -----------------------------+--------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => admin@… * version: 2.1.2 => * component: ports => server/hosting Comment: It looks like the new distfiles server is presenting the wrong MIME type for .dmg files: {{{ $ curl -I http://distfiles.macports.org/MacPorts/MacPorts-2.1.2-10.5-Leopard.dmg HTTP/1.1 200 OK Date: Sun, 04 Nov 2012 19:24:23 GMT Server: Apache/2.2 Last-Modified: Wed, 25 Jul 2012 20:15:38 GMT ETag: "c805e9-876e0-4c5ad24706314" Accept-Ranges: bytes Content-Length: 554720 Connection: close Content-Type: application/x-troff-man }}} {{{ $ curl -I http://distfiles.macports.org/isightcapture/isightcapture1_1.dmg HTTP/1.1 200 OK Date: Sun, 04 Nov 2012 19:24:01 GMT Server: Apache/2.2 Last-Modified: Wed, 05 Sep 2012 00:29:28 GMT ETag: "c803c1-7d3d-4c8e977b9f0a2" Accept-Ranges: bytes Content-Length: 32061 Connection: close Content-Type: text/plain; charset=UTF-8 }}} That should be application/x-apple-diskimage or at least application /octet-stream, not application/x-troff-man or text/plain. I guess no MIME type is configured for .dmg on the server so it defaults to text/plain. And for the MacPorts dmg, the ".1" portion of the filename is looking like a manpage suffix. The server's default MIME type should be changed from text/plain to application/octet-stream and a MIME type for .dmg should be added as application/x-apple-diskimage. -- Ticket URL: <https://trac.macports.org/ticket/36883#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS