+if( $wgRequest->getVal( 'ctype' ) == 'application/xml' ) {
+ // Makes testing tweaks about a billion times easier
+ $ctype = 'application/xml';
+} else {
+ $ctype = 'application/opensearchdescription+xml';
+}
+$response->header( "Content-type: $ctype" );