Non-text content is not supported via action=raw. Use code 415 instead
of 406 to indicate this.
Change-Id: I6b7fbc5f4d0040ca2c90b77b2ceb39853f136fd8
$content = $rev->getContent();
if ( !$content instanceof TextContent ) {
- wfHttpError( 406, "Not Acceptable", "The requested page uses the content model `"
- . $content->getModel() . "` which is not supported via this interface." );
+ wfHttpError( 415, "Unsupported Media Type", "The requested page uses the content model `"
+ . $content->getModel() . "` which is not supported via this interface." );
die();
}