bugfix 302 should not be skip when call res.writeHead