Last modified: 2008-02-05 00:07:50 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 12915 - api format=txt returns content-type of text/text, should be something more common
api format=txt returns content-type of text/text, should be something more co...
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.12.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-02-04 23:34 UTC by CBM
Modified: 2008-02-05 00:07 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description CBM 2008-02-04 23:34:53 UTC
A query like

http://en.wikipedia.org/w/api.php?action=query&prop=revisions&meta=siteinfo&titles=Main%20Page&rvprop=user|comment&format=txt

returns the following header:

  Content-Type: text/text; charset=utf-8

This isn't a common MIME type. Apparently query.php returned text/html;  text/plain is an option as well.
Comment 1 Brion Vibber 2008-02-05 00:07:50 UTC
This is deliberate for security purposes (to keep MSIE from being an XSS vector)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links