fix setHeader and writeHead use in static