Modify ↓
Opened 16 years ago
Closed 15 years ago
#8108 closed task (fixed)
mimetypes wrong on t.e.o.
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | not applicable |
Component: | project | Version: | none |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
trying to download a text file from the source browser, the option is given to download in plain text. For example:
http://trac.edgewall.org/browser/trunk/contrib/workflow/trivial-workflow.ini?format=txt
The HTTP response is:
HTTP/1.x 200 OK Content-Type: text/plain Content-Length: 298 Last-Modified: Thu, 13 Dec 2007 09:14:14 GMT content-disposition: attachment Date: Thu, 05 Mar 2009 16:20:13 GMT Server: lighttpd/1.4.19
So I am forced to DL the text file.
Attachments (0)
Change History (2)
comment:1 by , 16 years ago
Component: | general → project |
---|---|
Milestone: | → not applicable |
Owner: | set to |
Type: | defect → task |
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I enabled [browser] render_unsafe_content
, and we get now:
HTTP/1.1 200 OK Content-Type: text/plain Content-Length: 298 Last-Modified: Thu, 13 Dec 2007 09:14:14 GMT Set-Cookie: trac_session=2610750798414f9c7b0f50ac; expires=Thu, 27-May-2010 08:46:18 GMT; Path=/ Date: Fri, 26 Feb 2010 08:46:18 GMT Server: lighttpd/1.4.19
However, depending on the browser, the file can still be downloaded instead of shown as plain text (e.g. IE8 and FF show it, Chrome not).
Note:
See TracTickets
for help on using tickets.
This is not a bug, but a feature, see TracIni#browser-section, render_unsafe_content.
Though this is more needed on Trac-hacks than here. I think we can set it to true, but that's up to Jonas.