From c0f30f6058f27694dd4faaf4040c804769999ac1 Mon Sep 17 00:00:00 2001 From: Jackson Tian Date: Fri, 22 Aug 2014 00:05:42 +0800 Subject: http: avoid create difference hidden class Reviewed-by: Trevor Norris --- lib/_http_incoming.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/_http_incoming.js b/lib/_http_incoming.js index ea92bfe7b..b31754d95 100644 --- a/lib/_http_incoming.js +++ b/lib/_http_incoming.js @@ -46,6 +46,8 @@ function IncomingMessage(socket) { this.socket = socket; this.connection = socket; + this.httpVersionMajor = null; + this.httpVersionMinor = null; this.httpVersion = null; this.complete = false; this.headers = {}; @@ -57,6 +59,7 @@ function IncomingMessage(socket) { this._pendings = []; this._pendingIndex = 0; + this.upgrade = null; // request (server) only this.url = ''; -- cgit v1.2.3