Skip to content

Conversation

@vikramjo
Copy link

@vikramjo vikramjo commented Jun 3, 2025

(options.attr || globals.attr) works well when attr is not boolean. For boolean, if the value of options.attr is set to false (or any falsy value), it will always fall back to globals.attr. In this case, the default value of globals.followRedirect being true, setting options.followRedirect to false does not set followRedirect to false as expected. This commit fixes this issue.

…owRedirect if options.followRedirect is false.

(options.attr || globals.attr) works well when attr is not boolean. For boolean, if the value of options.attr is set to false (or any falsey value), it will always fall back to globals.attr. In this case, the default value of globals.followRedirect being true, setting options.followRedirect to false does not set followRedirect to false as expected. This commit fixes this issue.
@silkimen silkimen force-pushed the master branch 29 times, most recently from 2212004 to 9b9ca58 Compare December 2, 2025 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant