Skip to content

fix: preserve SSL verification kwargs in handle_401#2433

Open
Lafff wants to merge 2 commits into
pycontribs:mainfrom
Lafff:fix-issue-2432
Open

fix: preserve SSL verification kwargs in handle_401#2433
Lafff wants to merge 2 commits into
pycontribs:mainfrom
Lafff:fix-issue-2432

Conversation

@Lafff

@Lafff Lafff commented May 26, 2026

Copy link
Copy Markdown

Fixes #2432

Good afternoon!

This PR preserves request kwargs when retrying requests in handle_401.

Previously, SSL settings derived from requests environment variables such as REQUESTS_CA_BUNDLE and CURL_CA_BUNDLE were lost during request replay, causing SSL verification failures for custom CAs.

The fix forwards the original send() kwargs through the retry chain and adds regression tests covering the behavior.

@Lafff Lafff requested a review from a team as a code owner May 26, 2026 21:04
@Lafff Lafff requested a review from adehad May 26, 2026 21:04
@Lafff Lafff changed the title fix issue 2432,Preserve SSL verification kwargs in handle_401 fix: preserve SSL verification kwargs in handle_401 May 26, 2026
@github-actions github-actions Bot added the fix label May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for the REQUESTS_CA_BUNDLE and CURL_CA_BUNDLE environment variables in JiraCookieAuth.handle_401

1 participant