[request] Add rejectUnauthorized to options (#18784)

This commit is contained in:
Vesa Poikajärvi
2017-08-14 12:03:16 -07:00
committed by Mohamed Hegazy
parent 4ecbf5db4d
commit ece0190b35
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -143,6 +143,7 @@ declare namespace request {
localAddress?: string;
proxy?: any;
strictSSL?: boolean;
rejectUnauthorized?: boolean;
time?: boolean;
gzip?: boolean;
preambleCRLF?: boolean;
+2 -1
View File
@@ -115,7 +115,8 @@ var options: request.Options = {
pool: value,
timeout: num,
proxy: value,
strictSSL: bool
strictSSL: bool,
rejectUnauthorized: false
};
// Below line has compile error, use OptionsWithUri or OptionsWithUrl instead. See #7979.