corrected mime-type on Atom feeds.
authorgfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Fri, 20 Mar 2009 00:32:08 +0000 (00:32 +0000)
committergfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Fri, 20 Mar 2009 00:32:08 +0000 (00:32 +0000)
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@205 6d9bc8c9-1ec2-4278-b937-99fde70a366f

conifer/syrup/views.py

index 68e64cc..5688c01 100644 (file)
@@ -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