Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Wikitech

Mime-Type for wikitext

 

 

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded


daniel at brightbyte

Apr 25, 2012, 9:09 AM

Post #1 of 2 (153 views)
Permalink
Mime-Type for wikitext

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.

That being said... the *correct* mime type would imho be
application/x-mediawiki. But i don't insist on it :)

-- daniel


_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


lists at nadir-seen-fire

Apr 25, 2012, 12:28 PM

Post #2 of 2 (147 views)
Permalink
Re: Mime-Type for wikitext [In reply to]

On Wed, 25 Apr 2012 09:09:31 -0700, Daniel Kinzler <daniel [at] brightbyte>
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.
>
> That being said... the *correct* mime type would imho be
> application/x-mediawiki. But i don't insist on it :)
>
> -- daniel

text/vnd.mediawiki.wikitext

--
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name]

_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.