On 25/04/12 18:09, Daniel Kinzler wrote: > Hi all! > > I just noticed that MediaWiki uses two different mime types for wikitext: > > * application/x-wiki is used by AjaxResponse, OutputPage and StreamFile. > * text/x-wiki is used by RawAction.php (i.e. when you use action=raw) > > Is there a good reason for this, or is it just an oversight? I suggest to use > the same mime type everywhere, and keep the old one for compatibility reasons > - > i.e. we should use application/x-wiki consistently, and RawAction could > support > text/x-wiki as an alias.
I think it's done that way depending if we want it shown in the browser or not. On ?action=raw, we want it on the UA, saving would be bothersome, so we tell it's "text". On external edit application/x-wiki forces to open an external program (supposedly a wiki editor). That's probably the reason application/x-wiki is used in OutputPage.php for $wgUniversalEditButton StreamFile has a comment saying we want anything but a content type known to Internet Explorer. I don't know if there's a reason for AjaxResponse to use application/x-wiki. IMHO that should depend on what it's responding! > That being said... the *correct* mime type would imho be > application/x-mediawiki. But i don't insist on it :) Too late :) _______________________________________________ Wikitext-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitext-l
