This wasn't an issue before as scheme=https was not documented but now it is in the docs and it makes this entire block be skipped if url is given without scheme and no ssl_context is passed completely breaking ssl