File tree 1 file changed +1
-5
lines changed
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,6 @@ var RE_FIELDS = new RegExp('^(?:Connection|Transfer-Encoding|Content-Length|' +
20
20
var RE_CONN_VALUES = / (?: ^ | \W ) c l o s e | u p g r a d e (?: $ | \W ) / ig;
21
21
var RE_TE_CHUNKED = common . chunkExpression ;
22
22
23
- // Used to store headers returned by getHeaders()
24
- function OutgoingHeaders ( ) { }
25
- OutgoingHeaders . prototype = Object . create ( null ) ;
26
-
27
23
var dateCache ;
28
24
function utcDate ( ) {
29
25
if ( ! dateCache ) {
@@ -510,7 +506,7 @@ OutgoingMessage.prototype.getHeaderNames = function getHeaderNames() {
510
506
// Returns a shallow copy of the current outgoing headers.
511
507
OutgoingMessage . prototype . getHeaders = function getHeaders ( ) {
512
508
const headers = this [ outHeadersKey ] ;
513
- const ret = new OutgoingHeaders ( ) ;
509
+ const ret = new StorageObject ( ) ;
514
510
if ( headers ) {
515
511
const keys = Object . keys ( headers ) ;
516
512
for ( var i = 0 ; i < keys . length ; ++ i ) {
You can’t perform that action at this time.
0 commit comments