OS & version: Linux fleg-pc 5.4.0-42-generic #46~18.04.1-Ubuntu SMP Fri Jul 10 07:21:24 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
got version: 11.5.1
I'm trying to use https options (for example https.certificateAuthority) and afterResponse hook with retry. On retried request got prints DeprecationWarning: (node:10192) DeprecationWarning: Got: "options.ca" was never documented, please use "options.https.certificateAuthority", but I do not use options.ca. Same with other https options: certificate, key and passphrase.
Actual behavior
Terminal output:
retry
(node:10192) DeprecationWarning: Got: "options.ca" was never documented, please use "options.https.certificateAuthority"
{"hello":"world"}
Describe the bug
I'm trying to use https options (for example
https.certificateAuthority
) and afterResponse hook with retry. On retried request got prints DeprecationWarning:(node:10192) DeprecationWarning: Got: "options.ca" was never documented, please use "options.https.certificateAuthority"
, but I do not useoptions.ca
. Same with other https options:certificate
,key
andpassphrase
.Actual behavior
Terminal output:
Expected behavior
Terminal output:
Code to reproduce
PR with failing test: https://github.com/sindresorhus/got/pull/1390
Checklist