From 8370e7ca876f305c88863aa84f624b01d6add04e Mon Sep 17 00:00:00 2001 From: Justin Bronn Date: Sat, 6 Dec 2008 00:38:48 +0000 Subject: [PATCH] Fixed #9742 -- remove extraneous 'kml' from KML mimetype. Thanks, robotika for the bug report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9570 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/gis/shortcuts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/gis/shortcuts.py b/django/contrib/gis/shortcuts.py index 5310e58eef..58eac4d809 100644 --- a/django/contrib/gis/shortcuts.py +++ b/django/contrib/gis/shortcuts.py @@ -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): """