Refactored request mimetype config