diff options
Diffstat (limited to 'lib/http2.js')
-rw-r--r-- | lib/http2.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/http2.js b/lib/http2.js index 55b43282e9e..bc87442f64f 100644 --- a/lib/http2.js +++ b/lib/http2.js @@ -648,6 +648,9 @@ OutgoingMessage.prototype.addTrailers = function(headers) { OutgoingMessage.prototype.end = function(data, encoding) { + if (this.finished) { + return false; + } if (!this._header) { this._implicitHeader(); } |