From 0d78e4aedb4c07dadf0dc4017e6f2c3dd381ec58 Mon Sep 17 00:00:00 2001 From: daniel Date: Tue, 9 Oct 2012 14:00:00 +0200 Subject: [PATCH] [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 --- includes/actions/RawAction.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } -- 2.20.1