From 50ec265946c07e6db02595416be836ce05ce7270 Mon Sep 17 00:00:00 2001 From: gfawcett Date: Fri, 20 Mar 2009 00:32:08 +0000 Subject: [PATCH] corrected mime-type on Atom feeds. git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@205 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- conifer/syrup/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conifer/syrup/views.py b/conifer/syrup/views.py index 68e64cc..5688c01 100644 --- a/conifer/syrup/views.py +++ b/conifer/syrup/views.py @@ -1044,7 +1044,7 @@ def course_feeds(request, course_id, feed_type): else: return item.title lastmod = items and max(i.last_modified for i in items) or datetime.now() - return g.render('feeds/course_atom.xml', + resp = g.render('feeds/course_atom.xml', course=course, feed_type=feed_type, lastmod=lastmod, @@ -1052,4 +1052,6 @@ def course_feeds(request, course_id, feed_type): items=items, root='http://%s' % request.get_host(), _serialization='xml') + resp['Content-Type'] = 'application/atom+xml' + return resp -- 2.11.0