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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T14915, the corresponding Phabricator task for complete and up-to-date bug report information.
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