[Cpan-forum-commit] rev 195 - in trunk: . lib/CPAN

svn at pti.co.il svn at pti.co.il
Tue Aug 29 15:44:44 IDT 2006


Author: gabor
Date: 2006-08-29 15:44:43 +0300 (Tue, 29 Aug 2006)
New Revision: 195

Modified:
   trunk/
   trunk/lib/CPAN/Forum.pm
Log:
replace content type of rss feed to be application/rss+xml



Property changes on: trunk
___________________________________________________________________
Name: svk:merge
   - 8c4c90e1-83eb-0310-96eb-e7cb62807872:/local/cpan-forum:11057
   + 8c4c90e1-83eb-0310-96eb-e7cb62807872:/local/cpan-forum:11058

Modified: trunk/lib/CPAN/Forum.pm
===================================================================
--- trunk/lib/CPAN/Forum.pm	2006-08-29 12:44:40 UTC (rev 194)
+++ trunk/lib/CPAN/Forum.pm	2006-08-29 12:44:43 UTC (rev 195)
@@ -2294,12 +2294,9 @@
         my $title = sprintf "[%s] %s", $post->gid->name, $post->subject;
         $rss->item($url. "posts/" . $post->id(), $title); # TODO _subject_escape ?
     }
-#   $rss->save("file.rss");
 
+    $self->header_props(-type => 'application/rss+xml');
     
-    #print "Content-type: application/xml\n\n", rss_as_string();
-    #$self->header_props(-type => 'application/xml');
-    
     return $rss->as_string();
 }
 



More information about the Cpan-forum-commit mailing list