revert reliance on rack's request.media_type