r2 - 27 Mar 2006 - 17:34:24 - EricCoteYou are here: TWiki >  Codev Web > WebAtomWithProperContentType
Tags:
syndication 1 Add my vote for this tag, xml 1 Add my vote for this tag, , create new tag

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
elsediff TWiki.pm_webatom_and_app_atomxml.diff manage 0.7 K 27 Mar 2006 - 17:31 EricCote patch to TWiki.pm
elsediff TWiki_Render.pm_webatom_and_app_atomxml.diff manage 0.6 K 27 Mar 2006 - 17:32 EricCote patch to TWiki/Render.pm
elsediff TWiki_View.pm_webatom_and_app_atomxml.diff manage 0.6 K 27 Mar 2006 - 17:33 EricCote patch to TWiki/UI/View.pm
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo