[MacPorts] #31776: .tbz2 files are not plain text files

MacPorts noreply at macports.org
Tue Oct 25 15:58:13 PDT 2011


#31776: .tbz2 files are not plain text files
-------------------------------------+--------------------------------------
 Reporter:  ryandesign@…             |       Owner:  wsiegrist@…        
     Type:  defect                   |      Status:  new                
 Priority:  Normal                   |   Milestone:                     
Component:  server/hosting           |     Version:                     
 Keywords:                           |        Port:                     
-------------------------------------+--------------------------------------

Comment(by ryandesign@…):

 In addition to fixing the MIME type for .tbz2 files specifically, since
 the purpose of the packages and distfiles servers is to distribute non-
 text files, it would be good to change the ''default'' MIME type to
 application/octet-stream. That's this directive in httpd.conf:

 {{{
 #
 # DefaultType: the default MIME type the server will use for a document
 # if it cannot otherwise determine one, such as from filename extensions.
 # If your server contains mostly text or HTML documents, "text/plain" is
 # a good value.  If most of your content is binary, such as applications
 # or images, you may want to use "application/octet-stream" instead to
 # keep browsers from trying to display binary files as though they are
 # text.
 #
 DefaultType text/plain
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/31776#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list