﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
4549	Set mime type on admin media content (images, css) under WSGI	Stefane Fermgier <sf@…>	Adrian Holovaty	"Content-type is not set for admin media content.

{{{
Macintosh% wget -S http://localhost:8080/media/css/dashboard.css
--22:17:36--  http://localhost:8080/media/css/dashboard.css
           => `dashboard.css.2'
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 
  HTTP/1.0 200 OK
  Date: Tue Jun 12 20:17:36 2007
  Server: WSGIServer/0.1 Python/2.4.3
  Content-Length: 321
Length: 321 [text/css]
}}}

Apparently, this isn't an issue in most users circumstances, but It doesn't work for me as I like to put my apps behind an Apache proxy (using the ProxyPass / ProxyPassReverse directives):

{{{
Macintosh% wget -S http://localhost/media/css/dashboard.css
--22:26:51--  http://localhost/media/css/dashboard.css
           => `dashboard.css.3'
Resolving localhost... 
Connecting to localhost|...|:80... connected.
HTTP request sent, awaiting response... 
  HTTP/1.1 200 OK
  Date: Tue, 12 Jun 2007 20:23:47 GMT
  Server: WSGIServer/0.1 Python/2.4.1
  Content-Length: 321
  X-Cache: MISS from localhost
  Keep-Alive: timeout=15, max=100
  Connection: Keep-Alive
  Content-Type: text/plain; charset=iso-8859-1
Length: 321 [text/plain]
}}}

The attached patch should fix the issue.
"		closed	contrib.admin	dev		fixed			Ready for checkin	1	0	0	0	0	0
