[Jifty-commit] r6179 - wifty/trunk/lib/Wifty/View

Jifty commits jifty-commit at lists.jifty.org
Wed Dec 24 12:56:22 EST 2008


Author: ruz
Date: Wed Dec 24 12:56:21 2008
New Revision: 6179

Modified:
   wifty/trunk/lib/Wifty/View/Feeds.pm

Log:
* send HTTP headers manually :(

Modified: wifty/trunk/lib/Wifty/View/Feeds.pm
==============================================================================
--- wifty/trunk/lib/Wifty/View/Feeds.pm	(original)
+++ wifty/trunk/lib/Wifty/View/Feeds.pm	Wed Dec 24 12:56:21 2008
@@ -35,6 +35,11 @@
     my ($pages, $title, $show_as) = get(qw(pages title show_as));
     $show_as ||= 'headlines';
 
+    # XXX: investigation required. Why Jifty doesn't send HTTP headers
+    # for us?
+    Jifty->handler->apache->content_type('application/atom+xml');
+    Jifty->handler->send_http_header;
+
     my $url = Jifty->web->url;
     my $feed = XML::Atom::SimpleFeed->new(
         title => $title, link => $url


More information about the Jifty-commit mailing list