Tags:
syndication1Add my vote for this tag xml1Add my vote for this tag create new tag
, view all tags

WebAtomWithProperContentType

With a little bit of hacking on TWiki/UI/View.pm, TWiki/Render.pm, and TWiki.pm I was able to get TWiki to spit out the correct Content-Type header for WebAtom. It was spitting out 'application/rss+xml' or even 'text/xml' (due to my testing), but the correct one is 'application/atom+xml'.

-- Contributors: EricCote

Discussion

I've attached patches, they are against TWiki-DEVELOP rev. 9517, and my changes.

-- EricCote - 25 Mar 2006

I forgot to attach the actual files the other day; fixed.

-- EricCote - 27 Mar 2006

 
Topic attachments
I Attachment Action Size Date Who Comment
Unknown file formatdiff TWiki.pm_webatom_and_app_atomxml.diff manage 0.7 K 2006-03-27 - 17:31 EricCote patch to TWiki.pm
Unknown file formatdiff TWiki_Render.pm_webatom_and_app_atomxml.diff manage 0.6 K 2006-03-27 - 17:32 EricCote patch to TWiki/Render.pm
Unknown file formatdiff TWiki_View.pm_webatom_and_app_atomxml.diff manage 0.6 K 2006-03-27 - 17:33 EricCote patch to TWiki/UI/View.pm
Topic revision: r2 - 2006-03-27 - EricCote
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.