Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
http: remove 'headers sent?' check in OutgoingMessage.getHeader()
Browse files Browse the repository at this point in the history
Fixes #752.
  • Loading branch information
focusaurus authored and bnoordhuis committed Aug 28, 2011
1 parent 186364e commit a4eee3d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions lib/http.js
Expand Up @@ -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();
Expand Down
4 changes: 0 additions & 4 deletions lib/http2.js
Expand Up @@ -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();
Expand Down

0 comments on commit a4eee3d

Please sign in to comment.