Correct types of http version

Correct type of httpVersionMajor and httpVersionMinor in IncomingMessage from string to number.
This commit is contained in:
Gerhard Stöbich
2016-09-21 20:42:32 +02:00
parent 629a7d8ecc
commit 0230e245a8

4
node/node.d.ts vendored
View File

@@ -658,8 +658,8 @@ declare module "http" {
}
export interface IncomingMessage extends stream.Readable {
httpVersion: string;
httpVersionMajor: string;
httpVersionMinor: string;
httpVersionMajor: number;
httpVersionMinor: number;
connection: net.Socket;
headers: any;
rawHeaders: string[];