TLS-related options were only being applied for URLs with a https:// scheme. But that's too cautious, because we could run into a HTTPS URL after a redirect.
I've fixed this by just removing the check. Another option is to also check args.follow, but I think it's nicer to do this stuff unconditionally. That way we can consistently give errors for bad options (e.g. --verify=path/wiht/typo).
TLS-related options were only being applied for URLs with a
https://
scheme. But that's too cautious, because we could run into a HTTPS URL after a redirect.I've fixed this by just removing the check. Another option is to also check
args.follow
, but I think it's nicer to do this stuff unconditionally. That way we can consistently give errors for bad options (e.g.--verify=path/wiht/typo
).Test case:
Fixes #368.