Merge pull request #24440 from frankschulz/master

Fix https.globalAgent.options in node package
This commit is contained in:
Mine Starks
2018-03-21 09:42:33 -07:00
committed by GitHub
10 changed files with 21 additions and 3 deletions
+1
View File
@@ -1769,6 +1769,7 @@ declare module "https" {
export class Agent extends http.Agent {
constructor(options?: AgentOptions);
options: AgentOptions;
}
export class Server extends tls.Server {
+2
View File
@@ -1497,6 +1497,8 @@ namespace https_tests {
https.request('http://www.example.com/xyz');
https.globalAgent.options.ca = [];
{
const server = new https.Server();
+3 -1
View File
@@ -1081,7 +1081,9 @@ declare module "https" {
secureProtocol?: string;
}
export interface Agent extends http.Agent { }
export interface Agent extends http.Agent {
options?: AgentOptions;
}
export interface AgentOptions extends http.AgentOptions {
pfx?: any;
+2
View File
@@ -561,6 +561,8 @@ namespace https_tests {
});
https.request('http://www.example.com/xyz');
https.globalAgent.options.ca = [];
}
////////////////////////////////////////////////////
+3 -1
View File
@@ -1468,7 +1468,9 @@ declare module "https" {
secureProtocol?: string;
}
export interface Agent extends http.Agent { }
export interface Agent extends http.Agent {
options?: AgentOptions;
}
export interface AgentOptions extends http.AgentOptions {
pfx?: any;
+2
View File
@@ -1015,6 +1015,8 @@ namespace https_tests {
});
https.request('http://www.example.com/xyz');
https.globalAgent.options.ca = [];
}
////////////////////////////////////////////////////
+3 -1
View File
@@ -1528,7 +1528,9 @@ declare module "https" {
secureProtocol?: string;
}
export interface Agent extends http.Agent { }
export interface Agent extends http.Agent {
options?: AgentOptions;
}
export interface AgentOptions extends http.AgentOptions {
pfx?: any;
+2
View File
@@ -1093,6 +1093,8 @@ namespace https_tests {
});
https.request('http://www.example.com/xyz');
https.globalAgent.options.ca = [];
}
////////////////////////////////////////////////////
+1
View File
@@ -1758,6 +1758,7 @@ declare module "https" {
export class Agent extends http.Agent {
constructor(options?: AgentOptions);
options: AgentOptions;
}
export class Server extends tls.Server {
+2
View File
@@ -1471,6 +1471,8 @@ namespace https_tests {
https.request('http://www.example.com/xyz');
https.globalAgent.options.ca = [];
{
const server = new https.Server();