mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-21 23:43:15 +01:00
changed use-cookies
to disable-cookies
support for sending cookies by default
This commit is contained in:
parent
b82a2c3312
commit
9d4246d74b
@ -211,7 +211,7 @@ const builder = async (yargs) => {
|
|||||||
description:
|
description:
|
||||||
'The specified custom CA certificate (--cacert) will be used exclusively and the default truststore is ignored, if this option is specified. Evaluated in combination with "--cacert" only.'
|
'The specified custom CA certificate (--cacert) will be used exclusively and the default truststore is ignored, if this option is specified. Evaluated in combination with "--cacert" only.'
|
||||||
})
|
})
|
||||||
.option('use-cookies', {
|
.option('disable-cookies', {
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false,
|
default: false,
|
||||||
description: 'Automatically save and sent cookies with requests'
|
description: 'Automatically save and sent cookies with requests'
|
||||||
@ -306,7 +306,7 @@ const handler = async function (argv) {
|
|||||||
filename,
|
filename,
|
||||||
cacert,
|
cacert,
|
||||||
ignoreTruststore,
|
ignoreTruststore,
|
||||||
useCookies,
|
disableCookies,
|
||||||
env,
|
env,
|
||||||
envVar,
|
envVar,
|
||||||
insecure,
|
insecure,
|
||||||
@ -398,8 +398,8 @@ const handler = async function (argv) {
|
|||||||
if (insecure) {
|
if (insecure) {
|
||||||
options['insecure'] = true;
|
options['insecure'] = true;
|
||||||
}
|
}
|
||||||
if (useCookies) {
|
if (disableCookies) {
|
||||||
options['useCookies'] = true;
|
options['disableCookies'] = true;
|
||||||
}
|
}
|
||||||
if (cacert && cacert.length) {
|
if (cacert && cacert.length) {
|
||||||
if (insecure) {
|
if (insecure) {
|
||||||
|
Loading…
Reference in New Issue
Block a user