summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Bronn <jbronn@gmail.com>2008-12-06 01:24:59 +0000
committerJustin Bronn <jbronn@gmail.com>2008-12-06 01:24:59 +0000
commitcad3c019cc9a3fa903d709694454a407e65d9a19 (patch)
treee95def1b12652bcf396215c50041757b74e56ba1
parent687823640d954a8bdd4002082694e4579848a4c3 (diff)
[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
-rw-r--r--django/contrib/gis/shortcuts.py2
1 files changed, 1 insertions, 1 deletions
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):
"""