From 748535ffc6c9c20caeb7f58c60ca7c303cc69840 Mon Sep 17 00:00:00 2001 From: John James Date: Sat, 27 Jun 2020 16:36:30 -0400 Subject: [PATCH] improvement: remove deprecation warning replace ._headers with .getHeader to remove console warning: DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated --- lib/spdy/response.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spdy/response.js b/lib/spdy/response.js index e607918..b0be142 100644 --- a/lib/spdy/response.js +++ b/lib/spdy/response.js @@ -15,7 +15,7 @@ exports.writeHead = function writeHead (statusCode, reason, obj) { } this.statusCode = statusCode - if (this._headers) { + if (this.getHeader) { // Slow-case: when progressive API and header fields are passed. if (obj) { var keys = Object.keys(obj)