Check for req.headers instead of instanceof IncomingMessage