OutgoingMessage.prototype.setHeader = function(name, value) {
if (typeof name !== 'string')
throw new TypeError('`name` should be a string in setHeader(name, value).');
if (value === undefined)
throw new Error('`value` required in setHeader("' + name + '", value).');
if (this._header)
throw new Error('Can\'t set headers after they are sent.');
//...
```
response.send或end之后继续send了
@imhered 没有啊,
在消息发送以后不能再调用设置消息头的函数了,估计是异步机制带来的问题,最好能够上源码
@mawubin http://cnodejs.org/topic/5760cf03fa83165906ace2ef,http://cnodejs.org/topic/5760c71fce2caded068f9d52