summaryrefslogtreecommitdiff
path: root/lib/http2.js
diff options
context:
space:
mode:
authorPeter Lyons <pete@peterlyons.com>2011-08-01 13:39:15 -0400
committerBen Noordhuis <info@bnoordhuis.nl>2011-08-28 23:47:10 +0200
commita4eee3d28fe2b6c944ae4f40caeaec0efa85f2dc (patch)
tree4c1af0b22a57b91c5e27201d65fcd9b7442699b6 /lib/http2.js
parent186364e24f5c6ddc22cb95c4775422730993e0cc (diff)
downloadandroid-node-v8-a4eee3d28fe2b6c944ae4f40caeaec0efa85f2dc.tar.gz
android-node-v8-a4eee3d28fe2b6c944ae4f40caeaec0efa85f2dc.tar.bz2
android-node-v8-a4eee3d28fe2b6c944ae4f40caeaec0efa85f2dc.zip
http: remove 'headers sent?' check in OutgoingMessage.getHeader()
Fixes #752.
Diffstat (limited to 'lib/http2.js')
-rw-r--r--lib/http2.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/http2.js b/lib/http2.js
index 716a7810b3..ebfd3c7a26 100644
--- a/lib/http2.js
+++ b/lib/http2.js
@@ -540,10 +540,6 @@ OutgoingMessage.prototype.getHeader = function(name) {
throw new Error("`name` is required for getHeader().");
}
- if (this._header) {
- throw new Error("Can't use mutable header APIs after sent.");
- }
-
if (!this._headers) return;
var key = name.toLowerCase();