Page MenuHomePhabricator

api format=txt returns content-type of text/text, should be something more common
Closed, InvalidPublic

Description

Author: cbm.wikipedia

Description:
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.


Version: 1.12.x
Severity: enhancement

Details

Reference
bz12915

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:06 PM
bzimport set Reference to bz12915.
bzimport added a subscriber: Unknown Object (MLST).

This is deliberate for security purposes (to keep MSIE from being an XSS vector)