mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-14 22:40:03 +08:00
[request] Add rejectUnauthorized to options (#18784)
This commit is contained in:
committed by
Mohamed Hegazy
parent
4ecbf5db4d
commit
ece0190b35
1
types/request/index.d.ts
vendored
1
types/request/index.d.ts
vendored
@@ -143,6 +143,7 @@ declare namespace request {
|
||||
localAddress?: string;
|
||||
proxy?: any;
|
||||
strictSSL?: boolean;
|
||||
rejectUnauthorized?: boolean;
|
||||
time?: boolean;
|
||||
gzip?: boolean;
|
||||
preambleCRLF?: boolean;
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user