http: avoid create difference hidden class
Reviewed-by: Trevor Norris <trev.norris@gmail.com>
This commit is contained in:
parent
4ef2a5a672
commit
c0f30f6058
@ -46,6 +46,8 @@ function IncomingMessage(socket) {
|
|||||||
this.socket = socket;
|
this.socket = socket;
|
||||||
this.connection = socket;
|
this.connection = socket;
|
||||||
|
|
||||||
|
this.httpVersionMajor = null;
|
||||||
|
this.httpVersionMinor = null;
|
||||||
this.httpVersion = null;
|
this.httpVersion = null;
|
||||||
this.complete = false;
|
this.complete = false;
|
||||||
this.headers = {};
|
this.headers = {};
|
||||||
@ -57,6 +59,7 @@ function IncomingMessage(socket) {
|
|||||||
|
|
||||||
this._pendings = [];
|
this._pendings = [];
|
||||||
this._pendingIndex = 0;
|
this._pendingIndex = 0;
|
||||||
|
this.upgrade = null;
|
||||||
|
|
||||||
// request (server) only
|
// request (server) only
|
||||||
this.url = '';
|
this.url = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user