Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/http2.js')
-rw-r--r--lib/http2.js3
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();
}