Cannot set headers after they are sent to the client;
是服务器已经用res.end结束响应的过程了,在此过程中又建立响应链接
所以此时要检查代码 中是否存在express中间件 因为中间件的底层就是利用res.end书写的
或者其他的框架的中间件 一般在中间件前先返回数据使用send 然后再用end
Cannot set headers after they are sent to the client;
是服务器已经用res.end结束响应的过程了,在此过程中又建立响应链接
所以此时要检查代码 中是否存在express中间件 因为中间件的底层就是利用res.end书写的
或者其他的框架的中间件 一般在中间件前先返回数据使用send 然后再用end