From: daniel Date: Tue, 9 Oct 2012 12:00:00 +0000 (+0200) Subject: [Bug 40032] code 415 for bad type in action=raw X-Git-Tag: 1.31.0-rc.0~22026 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=0d78e4aedb4c07dadf0dc4017e6f2c3dd381ec58;p=lhc%2Fweb%2Fwiklou.git [Bug 40032] code 415 for bad type in action=raw Non-text content is not supported via action=raw. Use code 415 instead of 406 to indicate this. Change-Id: I6b7fbc5f4d0040ca2c90b77b2ceb39853f136fd8 --- diff --git a/includes/actions/RawAction.php b/includes/actions/RawAction.php index 7e7784cfcc..ec3d60a10b 100644 --- a/includes/actions/RawAction.php +++ b/includes/actions/RawAction.php @@ -151,8 +151,8 @@ class RawAction extends FormlessAction { $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(); }