Node.js Content-Type checking middleware