[1.0.X] Fixed #9742 -- remove extraneous 'kml' from KML mimetype. Thanks, robotika for the bug report.

Backport of r9570 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9571 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Justin Bronn 2008-12-06 01:24:59 +00:00
parent 687823640d
commit cad3c019cc
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ def compress_kml(kml):
def render_to_kml(*args, **kwargs):
"Renders the response as KML (using the correct MIME type)."
return HttpResponse(loader.render_to_string(*args, **kwargs),
mimetype='application/vnd.google-earth.kml+xml kml')
mimetype='application/vnd.google-earth.kml+xml')
def render_to_kmz(*args, **kwargs):
"""