[request] Add rejectUnauthorized to options (#18784)

This commit is contained in:
Vesa Poikajärvi
2017-08-14 22:03:16 +03:00
committed by Mohamed Hegazy
parent 4ecbf5db4d
commit ece0190b35
2 changed files with 3 additions and 1 deletions

View File

@@ -143,6 +143,7 @@ declare namespace request {
localAddress?: string;
proxy?: any;
strictSSL?: boolean;
rejectUnauthorized?: boolean;
time?: boolean;
gzip?: boolean;
preambleCRLF?: boolean;

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.