fix: don't use writeHead but setHeader instead