http: avoid create difference hidden class

Reviewed-by: Trevor Norris <trev.norris@gmail.com>
This commit is contained in:
Jackson Tian 2014-08-22 00:05:42 +08:00 committed by Trevor Norris
parent 4ef2a5a672
commit c0f30f6058

View File

@ -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 = '';