Changed to use MediaType constants instead of literal strings