mainSavannah Administration - Support: sr #104903, Wrong Content-Type for binaries

 
 

sr #104903: Wrong Content-Type for binaries

Submitter:  Larry Jones <scjones>
Submitted:  Thu 01 Dec 2005 03:51:33 PM UTC
   
 
Category:  Download area - developer access Priority:  5 - Normal
Severity:  4 - Important Status:  Wont Do
Privacy:  Public Assigned to:  Beuc
Operating System:  None Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 01 Dec 2005 09:41:53 PM UTC, comment #1: 

That needs reflection.
The current setup allows people to display README-style, source files and README.gz-style files directly in the web browser. "Save as" still can be used anyhow.

The problem is that, failing to find an adequate extension, Apache falls back to plain/text. You'll also notice that 'gz' isn't in /etc/mime.types, at least not in Debian's (that file is used by Apache to provided the Content-Type).

Since you want a 'portable' configuration for this worldwide mirrored download directory, changing Savannah, moreover with an unusual configuration, may not be an adequate solution. I suggest you use a common binary extension for your files, such as ".bin.gz". Since your users are already gunzip'ing&renaming the files you provide, I don't think this would be a problem for them.

Sylvain Beucler <Beuc>
Thu 01 Dec 2005 03:51:33 PM UTC, original submission:  

Our download area contains a number of gzipped executable files (e.g., http://savannah.nongnu.org/download/cvs/binary/feature/hppa-hpux/cvs-1.12.10-HP.gz). When getting these files, the web server HTTP response headers include Content-Type: text/plain (which is not correct) and Content-Encoding: x-gzip (which causes most browsers to automatically unzip the file, frequently without removing the .gz from the file name, which seriously confuses users and makes the related signature files useless since they're for the gzipped data. We really need these files to have an application/octet-stream content type and no content encoding.

Larry Jones <scjones>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 7 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-12-06 Beuc Open/ClosedOpen Closed
2005-12-01 Beuc StatusNone Wont Do
    Assigned toNone Beuc
2005-12-01 scjones Carbon-CopyRemoved dpricemdb -
2005-12-01 scjones Carbon-Copy- Added dprice
    Carbon-Copy- Added mdb
2005-12-01 scjones Carbon-Copy- Added dpricemdb

Back to the top

Powered by Savane 3.13-4b48.
Corresponding source code