Permalink
Browse files

Setting correct Content-Type header for JSON response from ListingView.

  • Loading branch information...
lukasgraf committed Apr 24, 2012
1 parent 15faaac commit 0afcd7f0b4da8d10572b099c88f188768bfe84b1
Showing with 4 additions and 1 deletion.
  1. +2 −1 docs/HISTORY.txt
  2. +2 −0 ftw/tabbedview/browser/listing.py
View
@@ -5,7 +5,8 @@ Changelog
3.2.3 (unreleased)
------------------
-- Nothing changed yet.
+- Setting correct Content-Type header for JSON response from ListingView.
+ [lgraf]
3.2.2 (2012-04-23)
@@ -103,6 +103,8 @@ def __call__(self, *args, **kwargs):
static['selection'] = self.selection()
self.table_options.update({'static': static})
+ # Set correct content type for JSON response
+ self.request.response.setHeader("Content-type", "application/json")
return self.render_listing()
else:
self.contents = [{}, ]

0 comments on commit 0afcd7f

Please sign in to comment.