Switch from res.type to res.setHeader

For people who are using Connect