aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Ochotnicky <sochotnicky@gmail.com>2009-08-11 01:59:34 +0200
committerStanislav Ochotnicky <sochotnicky@gmail.com>2009-08-11 01:59:34 +0200
commitcc5f63ea2345de5d6445ee23ad4ddd3f583a0b67 (patch)
tree17949a974fa2d00105e5b2ae4da4606a7911c11d
parentAdded "time added" column to packageproperties (diff)
downloadcollagen-cc5f63ea2345de5d6445ee23ad4ddd3f583a0b67.tar.gz
collagen-cc5f63ea2345de5d6445ee23ad4ddd3f583a0b67.tar.bz2
collagen-cc5f63ea2345de5d6445ee23ad4ddd3f583a0b67.zip
Changed view of attachment to use utf-8 charset
-rw-r--r--web/main/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/main/views.py b/web/main/views.py
index 174453b..634ea4f 100644
--- a/web/main/views.py
+++ b/web/main/views.py
@@ -68,7 +68,7 @@ def view(request, category_name, pkg_name, pkg_ver):
def view_attachment(request, attachment_id):
try:
at = Attachment.objects.get(pk=attachment_id)
- return HttpResponse(at.content, mimetype=at.mimetype)
+ return HttpResponse(at.content, content_type="%s; charset=utf-8" % at.mimetype)
except Attachment.DoesNotExist:
raise Http404